From 79875812166cd7d1fd7821a42fd8f9645145148d Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 8 Jul 2018 19:55:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=20Remove=20unneeded=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/getManifest.ts | 2 +- src/getSolidpkg.ts | 2 +- src/installPatch.ts | 7 +------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/getManifest.ts b/src/getManifest.ts index 7d46ca8..fcb24ac 100644 --- a/src/getManifest.ts +++ b/src/getManifest.ts @@ -16,7 +16,7 @@ if (!verifyProductName(product)) { failFunction(`"${product} is not a valid product name.`); } -//Get manifest and write output to console +//Get manifest and write output to stdout getManifest(product as Product).then((output: IManifest) => { process.stdout.write(JSON.stringify(output)); //process.exit(0); diff --git a/src/getSolidpkg.ts b/src/getSolidpkg.ts index 7d957dc..70d46a3 100644 --- a/src/getSolidpkg.ts +++ b/src/getSolidpkg.ts @@ -26,7 +26,7 @@ if (!to.match(/^(0|[1-9][0-9]{0,2})$/)) { failFunction(`to value "${to.substring(0, 300)}" is not a valid integer; it must be in range [0, 999].`); } -//Get solidpkg and write output to console +//Get solidpkg and write output to stdout getSolidpkg(product as Product, Number(from), Number(to)).then((output: ISolidSimple) => { process.stdout.write(JSON.stringify(output)); //process.exit(0); diff --git a/src/installPatch.ts b/src/installPatch.ts index dcc4ef3..d69c31a 100644 --- a/src/installPatch.ts +++ b/src/installPatch.ts @@ -2,11 +2,6 @@ import getManifest from './ssn/getManifest'; import getPatch from './ssn/getPatch'; (async () => { - //----- PATCHMANIFEST ----- - //const patchmanifestJson = await getManifest('assets_swtor_de_de'); - //console.log(patchmanifestJson); - - //----- PATCH ----- const patch = await getPatch('assets_swtor_de_de', -1, 0); - console.log(patch); + //console.log(patch); })();