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 14, 2020
1 parent 8e288ce commit 993f678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/misc/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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 993f678

Please sign in to comment.