fix eslint
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
// https://stackoverflow.com/questions/15270902/check-for-internet-connectivity-in-nodejs
|
||||
module.exports = function checkInternet(cb) {
|
||||
require('dns').lookup('google.com',function(err) {
|
||||
if (err && err.code == "ENOTFOUND") {
|
||||
cb(false);
|
||||
} else {
|
||||
cb(true);
|
||||
}
|
||||
})
|
||||
require('dns').lookup('google.com',function(err) {
|
||||
if (err && err.code == "ENOTFOUND") {
|
||||
cb(false);
|
||||
} else {
|
||||
cb(true);
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user