From 53b3933bee8e65de8cada5b26eac9d0096c8ac3c Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 26 Aug 2020 16:47:53 +0200 Subject: [PATCH] info should be an object --- packages/health-check/src/verboseChecks.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/health-check/src/verboseChecks.js b/packages/health-check/src/verboseChecks.js index b0c6551a..955484c2 100644 --- a/packages/health-check/src/verboseChecks.js +++ b/packages/health-check/src/verboseChecks.js @@ -235,6 +235,7 @@ function skylinkVerification(done, linkInfo) { .end((err, res) => { // Record the statusCode const statusCode = (res && res.statusCode) || (err && err.statusCode) || null; + let info = null; // Determine if the skylink is up. Start with checking if there was an // error in the request. @@ -249,9 +250,9 @@ function skylinkVerification(done, linkInfo) { // Redetermine if the Skylink is up based on the results from the body // and metadata hash checks up = up && validBody && validMetadata; - } - const info = { validBody, validMetadata }; + info = { validBody, validMetadata }; + } // Return the entry information done({