Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBlanche committed Aug 22, 2023
1 parent bdd9e84 commit 2b7ed6b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/page/Fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function render<PROPS>(fragment: Fragment<PROPS>, props: PROPS): Renderab
return () => fragment.render(props);
}

export function stream(
/*export function stream(
templateArray: TemplateStringsArray,
...interpolations: (RenderableFragment | string)[]
): ReadableStream<string> {
Expand All @@ -17,8 +17,6 @@ export function stream(
return new ReadableStream({
async pull(controller) {
if (promise !== undefined) {
// false positive
// deno-lint-ignore no-await-in-sync-fn
await promise;
}
const chunkOrFragment = i % 2 === 0 ? templateArray[i / 2] : interpolations[(i - 1) / 2];
Expand All @@ -40,4 +38,4 @@ export function stream(
});
},
});
}
}*/

0 comments on commit 2b7ed6b

Please sign in to comment.