mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 14:37:47 +00:00
Upgrade to Capitano v1.3.1 and remove unneeded try/catch clause
Capitano v1.3.1 introduces support for automatically catching action sync thrown errors
This commit is contained in:
parent
a8114380d7
commit
bcbb7d8e96
@ -51,11 +51,7 @@ exports.download =
|
||||
wifiKey: options.key
|
||||
appId: params.id
|
||||
|
||||
try
|
||||
fileName = resin.models.os.generateCacheName(osParams)
|
||||
catch error
|
||||
return done(error)
|
||||
|
||||
fileName = resin.models.os.generateCacheName(osParams)
|
||||
outputFile = options.output or path.join(resin.settings.get('directories.os'), fileName)
|
||||
|
||||
async.waterfall [
|
||||
|
@ -46,7 +46,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "~0.9.0",
|
||||
"capitano": "~1.3.0",
|
||||
"capitano": "~1.3.1",
|
||||
"coffee-script": "~1.8.0",
|
||||
"conf.js": "^0.1.1",
|
||||
"diskio": "^1.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user