This commit is contained in:
Kevin Sawicki
2015-01-15 13:11:18 -08:00
parent d736ebff38
commit b6b90c0270

View File

@@ -226,8 +226,7 @@ class Project extends Model
if filePath?
try
fileDescriptor = fs.openSync(filePath, 'r+')
fs.closeSync(fileDescriptor)
fs.closeSync(fs.openSync(filePath, 'r+'))
catch error
# allow ENOENT errors to create an editor for paths that dont exist
throw error unless error.code is 'ENOENT'