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
af98a89e51
commit
19e151e521
@ -59,7 +59,7 @@ exports.rename = permissions.user (params) ->
|
||||
async.waterfall [
|
||||
|
||||
(callback) ->
|
||||
if params.name? and not _.isEmpty(params.name)
|
||||
if not _.isEmpty(params.name)
|
||||
return callback(null, params.name)
|
||||
ui.widgets.ask('How do you want to name this device?', callback)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user