Skip to content

Commit

Permalink
remove more linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockwar committed Nov 23, 2024
1 parent 505578f commit 041bcf6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/render.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import { fromByteArray, toByteArray } from "base64-js";
import { generate } from "./lib";
import { brighten } from "./image";
import { EpubOptions } from "./options";

let num = 0;

export async function render(
mhtml: ArrayBuffer,
opts: EpubOptions,
): Promise<{ epub: Uint8Array; title?: string }> {
console.log('[render] Starting render process');
num++;
try {
console.log('[render] Processing MHTML directly');
const mhtmlStr = new TextDecoder().decode(new Uint8Array(mhtml).slice(0, 500));
Expand All @@ -26,8 +22,5 @@ export async function render(
console.error('[render] Error in render process:', error);
const errorMessage = error instanceof Error ? error.message : String(error);
throw new Error(`Failed to render document: ${errorMessage}`);
} finally {
num--;
console.log('[render] Render process completed');
}
}

0 comments on commit 041bcf6

Please sign in to comment.