Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Commit

Permalink
Merge pull request #32 from paperhive/greenkeeper-eslint-config-airbn…
Browse files Browse the repository at this point in the history
…b-8.0.0

Update eslint-config-airbnb to version 8.0.0 🚀
  • Loading branch information
andrenarchy committed Apr 24, 2016
2 parents ab98388 + dc2bc02 commit 9231fed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"co": "^4.6.0",
"coveralls": "^2.11.6",
"eslint": "^2.5.1",
"eslint-config-airbnb": "^7.0.0",
"eslint-config-airbnb": "^8.0.0",
"eslint-plugin-import": "^1.5.0",
"mocha": "^2.3.4",
"mocha-lcov-reporter": "1.2.0",
"mongoose": "^4.3.4",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const erase = co.wrap(function* erase(mongoose) {
});

export const connect = co.wrap(function* connect(mongoose, dbURI, options) {
if (mongoose.connection.db) {return;}
if (mongoose.connection.db) return;
const newOptions = options || {};
yield promisify(mongoose.connect, {context: mongoose})(dbURI, newOptions);
});
Expand Down

0 comments on commit 9231fed

Please sign in to comment.