mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-24 16:56:16 -04:00
Partly replace _ =>
with () =>
globally to conform with Googles JavaScript style guide if no parameters are expected in arrow functions
This commit is contained in:
parent
d84c7d1f84
commit
d388f7e3cd
7 changed files with 87 additions and 87 deletions
|
@ -56,7 +56,7 @@ const fromNetwork = (request, timeout) =>
|
|||
fetch(request).then(response => {
|
||||
clearTimeout(timeoutId);
|
||||
fulfill(response);
|
||||
update(request).then(() => console.log("Cache successfully updated for", request.url));
|
||||
update(request).then(_ => console.log("Cache successfully updated for", request.url));
|
||||
}, reject);
|
||||
});
|
||||
|
||||
|
@ -77,7 +77,7 @@ const update = request =>
|
|||
.then(async response => {
|
||||
await cache.put(request, response);
|
||||
})
|
||||
.catch(() => console.log(`Cache could not be updated. ${request.url}`))
|
||||
.catch(_ => console.log(`Cache could not be updated. ${request.url}`))
|
||||
);
|
||||
|
||||
// general strategy when making a request (eg if online try to fetch it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue