Skip to content

Commit

Permalink
Remove ENOTFOUND error code check
Browse files Browse the repository at this point in the history
  • Loading branch information
alchaplinsky committed Nov 7, 2022
1 parent db3d6b5 commit 5cfe2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getNewBounds = (bounds, options) => {

export const checkInternet = cb => {
require('dns').lookup('google.com', function (err) {
if (err && err.code == 'ENOTFOUND') {
if (err) {
cb(false)
} else {
cb(true)
Expand Down

0 comments on commit 5cfe2f6

Please sign in to comment.