From b027d86c5f3954dd1c82469f090a07a8385565ef Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 30 Sep 2018 14:50:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20verification=20error=20for?= =?UTF-8?q?=20retailclient=5Fpublictest=5F0to200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/verify/verifySolidpkg.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssn/verify/verifySolidpkg.ts b/src/ssn/verify/verifySolidpkg.ts index 268f2b8..f50a5fe 100644 --- a/src/ssn/verify/verifySolidpkg.ts +++ b/src/ssn/verify/verifySolidpkg.ts @@ -21,8 +21,8 @@ export default function verifySolidpkg(file: ISolid, { product, from, to }: {pro if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${from}to${to}/`) { throw new Error(`Expected reliable URL but it was "${file.reliable}".`); } - if (!(['0', '1', '2']).includes(file['reliable-id'])) { - throw new Error(`Expected reliable-id to be "0", "1" or "2" but it was "${file['reliable-id']}".`); + if (!(['0', '1', '2', '3']).includes(file['reliable-id'])) { + throw new Error(`Expected reliable-id to be an integer in range 0-3 but it was "${file['reliable-id']}".`); } if (file.info === undefined) {