From 20c7948ca6845dbacd0190e097158ce8989970f1 Mon Sep 17 00:00:00 2001 From: Jane <5373400+janeoa@users.noreply.github.com> Date: Wed, 10 Jun 2026 14:44:14 +0200 Subject: [PATCH] Remove catch so that the error is propogated and not ignored Signed-off-by: Jane <5373400+janeoa@users.noreply.github.com> --- docker/runner/signing-util/sign.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/docker/runner/signing-util/sign.js b/docker/runner/signing-util/sign.js index ce89caa..5104a06 100644 --- a/docker/runner/signing-util/sign.js +++ b/docker/runner/signing-util/sign.js @@ -9,15 +9,9 @@ const fs = require("fs"); const path = require("path"); class DecipherUtil { static decryptPwd(r, e) { - let t = buffer.Buffer.from(""); - try { - const i = DecipherUtil.getKey(r), - o = new Int8Array(buffer.Buffer.from(e, "hex")); - t = DecipherUtil.decrypt(i, o) - } catch (e) { - console.log(e); - } - return t.toString("utf-8") + const i = DecipherUtil.getKey(r), + o = new Int8Array(buffer.Buffer.from(e, "hex")); + return DecipherUtil.decrypt(i, o).toString("utf-8") } static getKey(r) { const e = path.resolve(r, "material");