We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec698b commit a20dfccCopy full SHA for a20dfcc
lib/misc/paths.js
@@ -10,8 +10,7 @@ export function home (...p) {
10
}
11
12
export function juliaHome (...p) {
13
- let juliaHome = process.env.JULIA_HOME
14
- if (!juliaHome) juliaHome = home('.julia')
+ const juliaHome = (process.env.JULIA_HOME || home('.julia'))
15
return path.join(juliaHome, ...p)
16
17
@@ -101,7 +100,7 @@ function atomProjectDir () {
101
100
// it is valid
102
try {
103
fs.stat(dirs[0].path, (err, stats) => {
104
- if (!err) return resolve(ws)
+ if (err) return resolve(ws)
105
if (stats.isFile()) return resolve(path.dirname(dirs[0].path))
106
return resolve(dirs[0].path)
107
})
0 commit comments