We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4e3681 commit dba5534Copy full SHA for dba5534
1 file changed
app/public/js/common/configLocation.js
@@ -9,7 +9,12 @@ const mkdirp = require('mkdirp');
9
*/
10
const folderExists = folder => {
11
let exists = false;
12
- fs.stat(folder, (err, stats) => { if (stats.isDirectory()) exists = true; });
+ fs.statSync(folder, (err, stats) => {
13
+ if (stats.isDirectory()) {
14
+ exists = true;
15
+ }
16
+ });
17
+
18
return exists;
19
};
20
@@ -40,7 +45,11 @@ class Configuration {
40
45
}
41
46
42
47
if (!folderExists(userConfigPath)) {
43
- mkdirp(userConfigPath, err => { if (err) console.error(err); });
48
+ mkdirp(userConfigPath, err => {
49
+ if (err) {
50
+ console.error(err);
51
52
44
53
54
55
return userConfigPath;
0 commit comments