mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 17:33:18 +00:00
Fix switch case
This commit is contained in:
parent
ac78a8bc02
commit
fd7d9858a9
@ -60,11 +60,8 @@ exports.writeImage = (devicePath, imagePath, options = {}, callback = _.noop) ->
|
||||
|
||||
exports.listDrives = (callback) ->
|
||||
switch os.platform()
|
||||
when 'darwin' then
|
||||
osx.list(callback)
|
||||
when 'win32' then
|
||||
win32.list(callback)
|
||||
when 'linux' then
|
||||
linux.list(callback)
|
||||
when 'darwin' then osx.list(callback)
|
||||
when 'win32' then win32.list(callback)
|
||||
when 'linux' then linux.list(callback)
|
||||
else
|
||||
throw new Error('Your OS is not supported by this module')
|
||||
|
Loading…
x
Reference in New Issue
Block a user