Skip to content

Commit a20dfcc

Browse files
committed
fix JS conversion
1 parent 0ec698b commit a20dfcc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/misc/paths.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ export function home (...p) {
1010
}
1111

1212
export function juliaHome (...p) {
13-
let juliaHome = process.env.JULIA_HOME
14-
if (!juliaHome) juliaHome = home('.julia')
13+
const juliaHome = (process.env.JULIA_HOME || home('.julia'))
1514
return path.join(juliaHome, ...p)
1615
}
1716

@@ -101,7 +100,7 @@ function atomProjectDir () {
101100
// it is valid
102101
try {
103102
fs.stat(dirs[0].path, (err, stats) => {
104-
if (!err) return resolve(ws)
103+
if (err) return resolve(ws)
105104
if (stats.isFile()) return resolve(path.dirname(dirs[0].path))
106105
return resolve(dirs[0].path)
107106
})

0 commit comments

Comments
 (0)