diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-03-14 14:25:16 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-03-14 14:25:16 +0100 |
commit | cc5d43519de567d6458eb42fc7228d6d8fb68725 (patch) | |
tree | 4d215a2f051548154721d1285e45c4a714fe3e0e | |
parent | feat(Windows): Replace window frame with custom menu bar (diff) | |
download | ferdium-app-cc5d43519de567d6458eb42fc7228d6d8fb68725.tar.gz ferdium-app-cc5d43519de567d6458eb42fc7228d6d8fb68725.tar.zst ferdium-app-cc5d43519de567d6458eb42fc7228d6d8fb68725.zip |
remove unnecessary ensureDir as emptyDirSync creates that path anyway
-rw-r--r-- | src/index.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index bb09bf42c..2542e69cc 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -18,7 +18,6 @@ let mainWindow; | |||
18 | let willQuitApp = false; | 18 | let willQuitApp = false; |
19 | 19 | ||
20 | // Ensure that the recipe directory exists | 20 | // Ensure that the recipe directory exists |
21 | fs.ensureDir(path.join(app.getPath('userData'), 'recipes')); | ||
22 | fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); | 21 | fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); |
23 | 22 | ||
24 | // Set App ID for Windows | 23 | // Set App ID for Windows |