Use fs instead of fs-plus

Since only an is file check is performed fs is sufficient
This commit is contained in:
Kevin Sawicki 2014-09-04 11:01:35 -07:00
parent fc59d9c503
commit 6e7968861d

View File

@ -1,5 +1,5 @@
app = require 'app' app = require 'app'
fs = require 'fs-plus' fs = require 'fs'
path = require 'path' path = require 'path'
protocol = require 'protocol' protocol = require 'protocol'
@ -24,5 +24,5 @@ class AtomProtocolHandler
relativePath = path.normalize(request.url.substr(7)) relativePath = path.normalize(request.url.substr(7))
for loadPath in @loadPaths for loadPath in @loadPaths
filePath = path.join(loadPath, relativePath) filePath = path.join(loadPath, relativePath)
break if fs.isFileSync(filePath) break if fs.statSyncNoException(filePath).isFile?()
return new protocol.RequestFileJob(filePath) return new protocol.RequestFileJob(filePath)