Skip to content

Commit

Permalink
refactor: remove always-true check
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshaf committed Nov 26, 2024
1 parent c37fae2 commit af2dc21
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/idb-cache/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,7 @@ export class IDBCache implements IDBCacheInterface {
await waitForAnimationFrame();
}
const existingChunk = await db.get(this.storeName, chunkKey);
if (
existingChunk &&
existingChunk.timestamp !== expirationTimestamp
) {
if (existingChunk) {
chunksToUpdate.push({
...existingChunk,
timestamp: expirationTimestamp,
Expand Down

0 comments on commit af2dc21

Please sign in to comment.