Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Commit

Permalink
bypass is.object if key as already been recognised as an array
Browse files Browse the repository at this point in the history
  • Loading branch information
SirbyAlive committed Apr 26, 2016
1 parent 7842da0 commit de57815
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/query.js
Expand Up @@ -112,9 +112,7 @@ Query.prototype.include = function (key, value) {
fields.forEach(function (key) {
self.include(key);
});
}

if (is.object(key)) {
} else if (is.object(key)) {
let fields = key;
let keys = Object.keys(fields);

Expand Down Expand Up @@ -148,9 +146,7 @@ Query.prototype.exclude = function (key, value) {
fields.forEach(function (key) {
self.exclude(key);
});
}

if (is.object(key)) {
} else if (is.object(key)) {
let fields = key;
let keys = Object.keys(fields);

Expand Down

0 comments on commit de57815

Please sign in to comment.