From fa8104e19f5bd59423408ebb5504df02077a6476 Mon Sep 17 00:00:00 2001 From: Austin Sasko Date: Fri, 18 Mar 2022 18:33:41 -0400 Subject: [PATCH] Update index.js --- dist/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 2733a40..6ca7895 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6567,8 +6567,6 @@ class DownloadHttpClient { return __awaiter(this, void 0, void 0, function* () { yield new Promise((resolve, reject) => { if (isGzip) { - core.info(`Called with ${izGzip}`); - core.info(`Called with ${JSON.stringify(response)}`); const gunzip = zlib.createGunzip(); response.message .on('error', error => { @@ -6585,6 +6583,8 @@ class DownloadHttpClient { }) .pipe(destinationStream) .on('close', () => { + core.info(`Called with ${izGzip}`); + core.info(`Called with ${JSON.stringify(response)}`); resolve(); }) .on('error', error => { @@ -6593,8 +6593,6 @@ class DownloadHttpClient { }); } else { - core.info(`Called with ${izGzip}`); - core.info(`Called with ${JSON.stringify(response)}`); response.message .on('error', error => { core.error(`An error occurred while attempting to read the response stream`); @@ -6603,6 +6601,8 @@ class DownloadHttpClient { }) .pipe(destinationStream) .on('close', () => { + core.info(`Called with ${izGzip}`); + core.info(`Called with ${JSON.stringify(response)}`); resolve(); }) .on('error', error => {