Skip to content

Commit

Permalink
fix JS conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Apr 17, 2020
1 parent 0ec698b commit a20dfcc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/misc/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export function home (...p) {
}

export function juliaHome (...p) {
let juliaHome = process.env.JULIA_HOME
if (!juliaHome) juliaHome = home('.julia')
const juliaHome = (process.env.JULIA_HOME || home('.julia'))
return path.join(juliaHome, ...p)
}

Expand Down Expand Up @@ -101,7 +100,7 @@ function atomProjectDir () {
// it is valid
try {
fs.stat(dirs[0].path, (err, stats) => {
if (!err) return resolve(ws)
if (err) return resolve(ws)
if (stats.isFile()) return resolve(path.dirname(dirs[0].path))
return resolve(dirs[0].path)
})
Expand Down

0 comments on commit a20dfcc

Please sign in to comment.