Skip to content

Commit

Permalink
Changed so that void is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
bharath090909 authored and manusa committed Oct 10, 2023
1 parent 85e7235 commit 38b23ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/quit.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ const quit = () => {
const persistentSessions = loadSettings().tabs
.filter(({sandboxed = false}) => sandboxed)
.map(({id}) => session.fromPartition(`persist:${id}`));
// eslint-disable-next-line no-console
[...persistentSessions, session.defaultSession].forEach(s => clearCache(s).catch(console.error));
[...persistentSessions, session.defaultSession].forEach(s => {
// eslint-disable-next-line no-console
clearCache(s).catch(console.error);
});
};

module.exports = {quit};

0 comments on commit 38b23ec

Please sign in to comment.