Skip to content

Commit

Permalink
Remove unecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmeu committed Oct 15, 2024
1 parent c90ac4c commit 91d3caa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@ const handleClearKey = async (ctx: Context, _request?: Request) => {

const effectivePrevRotationTime = getPrevRotationTime(new Date(latestKey.uploaded), ctx);

if (effectivePrevRotationTime == null) {
return new Response('Failed to determine previous rotation time', { status: 500 });
}

const toDelete: Set<string> = new Set();

for (const key of keys.objects) {
Expand Down

0 comments on commit 91d3caa

Please sign in to comment.