info should be an object
This commit is contained in:
parent
9ad39482ad
commit
53b3933bee
|
@ -235,6 +235,7 @@ function skylinkVerification(done, linkInfo) {
|
||||||
.end((err, res) => {
|
.end((err, res) => {
|
||||||
// Record the statusCode
|
// Record the statusCode
|
||||||
const statusCode = (res && res.statusCode) || (err && err.statusCode) || null;
|
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
|
// Determine if the skylink is up. Start with checking if there was an
|
||||||
// error in the request.
|
// 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
|
// Redetermine if the Skylink is up based on the results from the body
|
||||||
// and metadata hash checks
|
// and metadata hash checks
|
||||||
up = up && validBody && validMetadata;
|
up = up && validBody && validMetadata;
|
||||||
}
|
|
||||||
|
|
||||||
const info = { validBody, validMetadata };
|
info = { validBody, validMetadata };
|
||||||
|
}
|
||||||
|
|
||||||
// Return the entry information
|
// Return the entry information
|
||||||
done({
|
done({
|
||||||
|
|
Reference in New Issue