docs: comment out external url validation until url linking strategy is more thoroughly discussed

This commit is contained in:
Jennifer Shehane
2017-06-14 11:57:10 -04:00
parent 77a5cac664
commit 784b28f4b5

View File

@@ -54,17 +54,18 @@ function validateExternalUrl (href, source) {
return request(href)
.then((html) => {
return
// bail if we dont have a hash
if (!hash) {
return
}
assertHashIsPresent(href, source, hash, html)
})
.catch(errors.StatusCodeError, (err) => {
err.message = `Request to: ${href} failed. (Status Code ${err.statusCode})`
throw err
// if (!hash) {
// return
// }
//
// assertHashIsPresent(href, source, hash, html)
})
// .catch(errors.StatusCodeError, (err) => {
// err.message = `Request to: ${href} failed. (Status Code ${err.statusCode})`
// throw err
// })
}
function normalizeNestedPaths (data) {