From 0e8789863c5f2ef83dff941af1f1cf31038e76b9 Mon Sep 17 00:00:00 2001 From: muxator Date: Wed, 29 Aug 2018 02:46:08 +0200 Subject: [PATCH] db/Pad: removed unuseful else clause, no functional changes --- src/node/db/Pad.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index a3920cc8..6386e8b5 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -513,13 +513,12 @@ Pad.prototype.copy = function copy(destinationID, force, callback) { console.error("erroring out without force - after"); return; } - else // exists and forcing - { - padManager.getPad(destinationID, function(err, pad) { - if (ERR(err, callback)) return; - pad.remove(callback); - }); - } + + // exists and forcing + padManager.getPad(destinationID, function(err, pad) { + if (ERR(err, callback)) return; + pad.remove(callback); + }); } else {