remove unused var
This commit is contained in:
parent
d397e66e03
commit
fb2b8a5f79
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ function ensureLinkIsValid(file, data) {
|
||||||
var path = link.match(/[\w-]+\.md/)
|
var path = link.match(/[\w-]+\.md/)
|
||||||
if (link.match(/http/)) {
|
if (link.match(/http/)) {
|
||||||
var u = url.parse(link)
|
var u = url.parse(link)
|
||||||
http.request({method: "HEAD", host: u.host, path: u.pathname, port: 80}).on("error", function(r) {
|
http.request({method: "HEAD", host: u.host, path: u.pathname, port: 80}).on("error", function() {
|
||||||
console.log(file + " - broken external link: " + link)
|
console.log(file + " - broken external link: " + link)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue