This commit is contained in:
Manav Rathi 2024-05-06 19:28:05 +05:30
parent 333f364d38
commit 555eda0619
No known key found for this signature in database

View file

@ -303,8 +303,10 @@ const setupTrayItem = (mainWindow: BrowserWindow) => {
*/ */
const deleteLegacyDiskCacheDirIfExists = async () => { const deleteLegacyDiskCacheDirIfExists = async () => {
const removeIfExists = async (dirPath: string) => { const removeIfExists = async (dirPath: string) => {
log.info(`Removing legacy disk cache from ${dirPath}`); if (existsSync(dirPath)) {
await fs.rm(dirPath, { recursive: true }); log.info(`Removing legacy disk cache from ${dirPath}`);
await fs.rm(dirPath, { recursive: true });
}
}; };
// [Note: Getting the cache path] // [Note: Getting the cache path]
// //