Skip to content

Commit

Permalink
refactor(stream-text): clean return type
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Feb 15, 2025
1 parent 0f75b9d commit 701b1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stream-text/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { StreamTextChunkResult } from './const'
// eslint-disable-next-line @masknet/string-no-data-url
const CHUNK_HEADER_PREFIX = 'data:'

export const parseChunk = (text: string): [StreamTextChunkResult | undefined, boolean] | never => {
export const parseChunk = (text: string): [StreamTextChunkResult | undefined, boolean] => {
if (!text || !text.startsWith(CHUNK_HEADER_PREFIX))
return [undefined, false]

Expand Down

0 comments on commit 701b1b7

Please sign in to comment.