info should be an object

This commit is contained in:
Karol Wypchlo 2020-08-26 16:47:53 +02:00
parent 9ad39482ad
commit 53b3933bee
1 changed files with 3 additions and 2 deletions

View File

@ -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({