Skip to content

Commit

Permalink
fix: map 메서드를 반환값 없는 forEach 메서드로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
extinctmule committed Nov 4, 2024
1 parent 46ab41f commit 64fe06d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ self.addEventListener('activate', (event) => {
event.waitUntil(
caches.keys().then((cacheNames) =>
Promise.all(
cacheNames.map((cacheName) => {
cacheNames.forEach((cacheName) => {
if (!cacheWhitelist.includes(cacheName)) {
return caches.delete(cacheName);
}
Expand Down

0 comments on commit 64fe06d

Please sign in to comment.