Prevent note callback from being called twice

This commit is contained in:
Juan Cruz Viotti 2015-01-09 15:07:50 -03:00
parent 4de25b1325
commit 243a05a4e2

View File

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