From 243a05a4e2e051060ac168badc43c68d662a6038 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 9 Jan 2015 15:07:50 -0300 Subject: [PATCH] Prevent note callback from being called twice --- lib/actions/notes.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/actions/notes.coffee b/lib/actions/notes.coffee index f62ce751..b691e9a1 100644 --- a/lib/actions/notes.coffee +++ b/lib/actions/notes.coffee @@ -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) ->