Simplify conditional

This commit is contained in:
Juan Cruz Viotti 2015-01-06 13:57:11 -03:00
parent af98a89e51
commit 19e151e521

View File

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