Skip to content

Commit

Permalink
chore: drop logs and unused comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonraimondi committed Jun 5, 2024
1 parent e39327c commit e848204
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib/image_render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export class ImageRenderService implements ImageRenderInterface {
try {
await page.goto(url, this.NAV_OPTIONS);

let resizeWidth = undefined; // config.width ?? undefined;
let resizeHeight = undefined; // config.isFullPage ? undefined : config.height ?? undefined;
let resizeWidth: number | undefined = undefined;
let resizeHeight: number | undefined = undefined;

if (typeof config.width === "number") {
resizeWidth = config.width;
Expand Down
2 changes: 0 additions & 2 deletions src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export function getIndex(
const { url, ...input } = c.get("input");
const imageId = c.get("imageId");

logger.debug({ url, input, imageId });

let imageBuffer: Buffer | null = await imageStorageService.fetchImage(imageId);

if (imageBuffer === null || input.forceReload) {
Expand Down
1 change: 0 additions & 1 deletion tests/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ suite("app", () => {
it("succeeds with uri encoded url", async () => {
const url = encodeURIComponent("https://jasonraimondi.com");
const res = await app.request(`/?url=${url}`);
console.log(`/?url=${url}`);
expect(res.status).toBe(200);
});

Expand Down

0 comments on commit e848204

Please sign in to comment.