Simplify conditional

This commit is contained in:
Juan Cruz Viotti 2015-01-29 12:27:37 -04:00
parent f767f637f7
commit 38139ed169

View File

@ -189,8 +189,7 @@ exports.init =
, callback
], (error) ->
return done(error) if os.platform() isnt 'win32'
if error? and (error.code is 'EPERM' or error.code is 'EACCES')
if os.platform() is 'win32' and error? and (error.code is 'EPERM' or error.code is 'EACCES')
windosu = require('windosu')
# Need to escape everypath to avoid errors