Skip to content

Commit

Permalink
refactor: remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Feb 4, 2024
1 parent bdd76f2 commit 2b72893
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { resolve } from 'node:path';

export async function findFile(staticFolder: string, path: string): Promise<string | undefined> {
let filename = resolve(staticFolder, path.replace(/^\/+/, ''));
console.log('A', filename);

if (!filename.startsWith(staticFolder)) return;

Expand All @@ -14,7 +13,6 @@ export async function findFile(staticFolder: string, path: string): Promise<stri
filename = resolve(filename, 'index.html');
if (!existsSync(filename)) return;
}

console.log('respondWithContent', filename);

return filename;
}

0 comments on commit 2b72893

Please sign in to comment.