Skip to content

Commit

Permalink
fix removed lodash method
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenschobert committed Mar 9, 2016
1 parent 8b9cf9e commit 442a74f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pimm.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
this._controller_manager._view_manager = this._view_manager;
return this._controller_manager.load()
.catch(function checkError(e) {
return _.contains(e.message, 'ENOENT');
return _.includes(e.message, 'ENOENT');
}, function logError(e) {
console.log('>> WARNING: No controllers directory found '+e.cause.path);
});
Expand All @@ -212,7 +212,7 @@
};
return this._view_manager.load()
.catch(function checkError(e) {
return _.contains(e.message, 'ENOENT');
return _.includes(e.message, 'ENOENT');
}, function logError(e) {
console.log('>> WARNING: No views directory found '+e.cause.path);
});
Expand Down

0 comments on commit 442a74f

Please sign in to comment.