From 500737dbc75bbe717da57c97d9c1a8fc125fbc0f Mon Sep 17 00:00:00 2001 From: Herman van Hazendonk Date: Mon, 29 Mar 2021 09:12:23 +0200 Subject: [PATCH] Remove not needed else statement Cleanup as per comment --- lib/crypto/Crypto.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/crypto/Crypto.js b/lib/crypto/Crypto.js index a2032b5..4d53560 100644 --- a/lib/crypto/Crypto.js +++ b/lib/crypto/Crypto.js @@ -78,13 +78,8 @@ module.exports = class Crypto { { console.log("hex string of key starts with \"00\" and is 514 bytes long, fixing it to be 512 bytes long by stripping leading \"00\""); hexString = hexString.substr(2); - var base64String = Buffer.from(hexString, 'hex').toString('base64') - return base64String; - } - else - { - return (modPow(base, power, mod)).toBEBuffer().toString('base64'); } + return Buffer.from(hexString, 'hex').toString('base64'); } static pad(d) {