From fa525817bacfad65c363476678daf3cc2e4c96aa Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 5 Feb 2020 13:03:44 -0500 Subject: [PATCH] fix broken removePins RPC --- lib/commands/pin-rpc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/pin-rpc.js b/lib/commands/pin-rpc.js index 16998b8b5..663faa58b 100644 --- a/lib/commands/pin-rpc.js +++ b/lib/commands/pin-rpc.js @@ -199,7 +199,8 @@ Pinning.removePins = function (Env, safeKey, cb) { status: err? String(err): 'SUCCESS', }); - cb(err); + if (err) { return void cb(err); } + cb(void 0, 'OK'); }); };