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

Commit

Permalink
make eslint happier :)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenarchy committed Apr 24, 2016
1 parent cb26eb7 commit dc2bc02
Showing 1 changed file with 1 addition and 1 deletion.
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 dc2bc02

Please sign in to comment.