Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit eb5db4e

Browse files
committed
chore: lint fixes
1 parent 25732ff commit eb5db4e

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

lib/cached.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function cached(name, options) {
5555
cached.createCache(
5656
Object.assign(
5757
{
58-
name: name,
58+
name,
5959
},
6060
options || {}
6161
)

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ exports.optionalOpts = function optionalOpts(opts, cb) {
6565
if (!cb && typeof opts === 'function') {
6666
return { cb: opts, opts: null };
6767
}
68-
return { cb: cb, opts: opts };
68+
return { cb, opts };
6969
};

test/_backends.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
/* eslint-env mocha */
4+
35
const { defaults } = require('lodash');
46

57
const Cache = require('../lib/cache');

test/_unhandled-rejection.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
'use strict';
22

33
/* eslint no-console:0 */
4+
/* eslint-env mocha */
5+
46
const Bluebird = require('bluebird');
57

68
const unhandledRejections = [];

test/get-or-else.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ const Cache = require('../lib/cache');
77
const withBackends = require('./_backends');
88

99
function assertRejects(promise) {
10-
return promise.then(() => {
11-
throw new Error('Did not fail as expected');
12-
}, error => error);
10+
return promise.then(
11+
() => {
12+
throw new Error('Did not fail as expected');
13+
},
14+
error => error
15+
);
1316
}
1417

1518
describe('Cache::getOrElse', () => {

0 commit comments

Comments
 (0)