Skip to content

Commit

Permalink
Update _worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
amclubs authored Oct 15, 2024
1 parent b13847e commit db05845
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ async function handleFileOperation(KV, fileName, url) {
}

async function fileExists(KV, filename) {
const value = await KV.get(filename);
if (value === null) throw new Error('File not found');
return await KV.get(filename) !== null;
}

function base64Decode(str) {
Expand Down

0 comments on commit db05845

Please sign in to comment.