Minor fixes

This commit is contained in:
2020-08-15 15:07:32 -05:00
parent 27aa0ae8dc
commit 25e689b033
4 changed files with 7 additions and 8 deletions

View File

@@ -53,8 +53,8 @@ const unmountAllDrives = () => {
}
// Unmount all items
for (const i in mountedLocations) {
const data = mountedData[mountedLocations[i]];
for (const mountLocation of mountedLocations) {
const data = mountedData[mountLocation];
helpers.stopMountProcessSync(data.Version, data.Provider, data.Remote, data.S3);
}
@@ -252,7 +252,7 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => {
}
});
ipcMain.on(Constants.IPC_Unmount_All_Drives, (event, data) => {
ipcMain.on(Constants.IPC_Unmount_All_Drives, event => {
unmountAllDrives();
standardIPCReply(event, Constants.IPC_Unmount_All_Drives_Reply);
});