Skip to content

Commit

Permalink
Merge 4b39f81 into c24cf93
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] committed Dec 14, 2019
2 parents c24cf93 + 4b39f81 commit 57b3bbb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
7 changes: 2 additions & 5 deletions .eslintrc.json
@@ -1,7 +1,4 @@
{
"root": true,
"extends": "hexo",
"rules": {
"node/no-deprecated-api": "off"
}
}
"extends": "hexo"
}
3 changes: 2 additions & 1 deletion lib/query.js
Expand Up @@ -138,7 +138,8 @@ class Query {
find(query, options = {}) {
const filter = this._schema._execQuery(query);
const { data, length } = this;
let { limit = length, skip, lean = false } = options;
const { lean = false } = options;
let { limit = length, skip } = options;
const arr = [];

for (let i = 0; limit && i < length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -35,7 +35,7 @@
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"eslint": "^6.1.0",
"eslint-config-hexo": "^3.0.0",
"eslint-config-hexo": "^4.0.0",
"jsdoc": "^3.4.0",
"lodash": "^4.17.15",
"minami": "^1.1.1",
Expand Down
7 changes: 2 additions & 5 deletions test/.eslintrc.json
@@ -1,7 +1,4 @@
{
"root": true,
"extends": "hexo/test",
"rules": {
"node/no-deprecated-api": "off"
}
}
"extends": "hexo/test"
}
4 changes: 2 additions & 2 deletions test/scripts/mutex.js
Expand Up @@ -7,9 +7,9 @@ const sinon = require('sinon');
describe('Mutex', () => {
it('mutex test', callback => {
const mutex = new Mutex();
let fn1, fn2;
let fn2;

fn1 = sinon.spy(() => {
const fn1 = sinon.spy(() => {
setTimeout(() => {
fn2.called.should.be.false;
mutex.unlock();
Expand Down

0 comments on commit 57b3bbb

Please sign in to comment.