move fs.normalize call to getFullPath

This commit is contained in:
Rom Grk 2015-05-29 08:51:32 -04:00
parent 2702ba4d79
commit 394dd1dffa

View file

@ -37,6 +37,7 @@ saveAs = (filePath) ->
fs.writeFileSync(filePath, editor.getText()) fs.writeFileSync(filePath, editor.getText())
getFullPath = (filePath) -> getFullPath = (filePath) ->
filePath = fs.normalize filePath
return filePath if path.isAbsolute(filePath) return filePath if path.isAbsolute(filePath)
return path.join(atom.project.getPath(), filePath) return path.join(atom.project.getPath(), filePath)