From b9e537ca4f3c614a2fb8afaf4aca6387de02d3b0 Mon Sep 17 00:00:00 2001 From: muxator Date: Wed, 27 Mar 2019 00:11:36 +0100 Subject: [PATCH] db/Pad.js: removed unreachable return statement Found by the Typescript compiler when doing an experimental conversion. --- src/node/db/Pad.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 8aa742850..0692215d7 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -393,8 +393,6 @@ Pad.prototype.copy = async function copy(destinationID, force) { if (!force) { console.error("erroring out without force"); throw new customError("destinationID already exists", "apierror"); - - return; } // exists and forcing