Skip to content

Commit 145a679

Browse files
committed
Rewrite redundant code 🗞️
1 parent ce7cbe6 commit 145a679

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

js/bun.lockb

0 Bytes
Binary file not shown.

js/serviceworker.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ self.addEventListener('install', event => {
116116
self.skipWaiting();
117117
}
118118
const cache = await caches.open(CACHE_VERSION);
119-
await cache.addAll(
120-
CACHE_LIST.map(x => {
121-
return CACHE_URL + x;
122-
}),
123-
);
119+
await cache.addAll(CACHE_LIST.map(x => CACHE_URL + x));
124120
})(),
125121
);
126122
});

0 commit comments

Comments
 (0)