mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Simplify conditional
This commit is contained in:
parent
f767f637f7
commit
38139ed169
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user