Fix switch case

This commit is contained in:
Juan Cruz Viotti 2015-01-30 10:37:23 -04:00
parent ac78a8bc02
commit fd7d9858a9

View File

@ -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')