Skip to content

Commit

Permalink
fix: don't throw when required in the repl
Browse files Browse the repository at this point in the history
Fixes #1292
  • Loading branch information
remy committed Mar 31, 2018
1 parent 89d6062 commit aa18c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var utils = (module.exports = {
var p = module.parent;
while (p) {
// in electron.js engine it happens
if (p.filename === undefined) {
if (!p.filename) {
return true;
}
if (p.filename.indexOf('bin' + path.sep + 'nodemon.js') !== -1) {
Expand Down

0 comments on commit aa18c80

Please sign in to comment.