feature/IO-3066-1-scaffolding: Minor cleanup
This commit is contained in:
@@ -38,8 +38,7 @@ const SettingsWatchedFilePathsRemove = async (
|
||||
};
|
||||
|
||||
const SettingsWatchedFilePathsGet = async (): Promise<string[]> => {
|
||||
const filepaths: string[] = Store.get("settings.filepaths") || [];
|
||||
return filepaths;
|
||||
return Store.get("settings.filepaths") || [];
|
||||
};
|
||||
|
||||
const SettingsWatcherPollingGet = async (): Promise<{
|
||||
@@ -66,7 +65,7 @@ const SettingsWatcherPollingSet = async (
|
||||
|
||||
//Restart the watcher with these new settings.
|
||||
await StopWatcher();
|
||||
StartWatcher();
|
||||
await StartWatcher();
|
||||
|
||||
return { enabled, interval };
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ const ipcMainHandleAuthStateChanged = async (
|
||||
}
|
||||
} catch (error) {
|
||||
log.error(
|
||||
"Error while querying active bodyshop or masterdata",
|
||||
"Error while querying active bodyshop or master data",
|
||||
errorTypeCheck(error),
|
||||
);
|
||||
sendIpcToRenderer(
|
||||
@@ -48,7 +48,7 @@ const ipcMainHandleAuthStateChanged = async (
|
||||
};
|
||||
|
||||
const handleShopMetaDataFetch = async (
|
||||
reloadWindow: boolean,
|
||||
reloadWindow?: boolean,
|
||||
): Promise<void> => {
|
||||
try {
|
||||
log.debug("Requery shop information & master data.");
|
||||
|
||||
Reference in New Issue
Block a user