mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-08 11:54:12 +00:00
Prevent note callback from being called twice
This commit is contained in:
parent
4de25b1325
commit
243a05a4e2
@ -9,7 +9,7 @@ exports.set = permissions.user (params, options) ->
|
||||
|
||||
(callback) ->
|
||||
if not params.note?
|
||||
helpers.readStdin(callback)
|
||||
return helpers.readStdin(callback)
|
||||
return callback(null, params.note)
|
||||
|
||||
(note, callback) ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user