Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed May 22, 2024
1 parent 699f17b commit abb3a07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ export class FSWriter implements Writer {

await ensureDir(posix.dirname(filename));

page.content instanceof Uint8Array
? await Deno.writeFile(filename, page.content)
: await Deno.writeTextFile(filename, page.content as string);
content instanceof Uint8Array
? await Deno.writeFile(filename, content)
: await Deno.writeTextFile(filename, content);

return true;
}
Expand Down

0 comments on commit abb3a07

Please sign in to comment.