Skip to content

Commit 6b251e6

Browse files
author
Jason Walton
committed
Clean up some lint errors.
1 parent 5ff31ea commit 6b251e6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"radix": 2, // require use of the second argument for parseInt() (off by default)
126126
"vars-on-top": 2, // requires to declare all vars on top of their containing scope (off by default)
127127
"wrap-iife": 2, // require immediate function invocation to be wrapped in parentheses (off by default)
128-
"yoda": 2, // require or disallow Yoda conditions
128+
"yoda": 0, // require or disallow Yoda conditions
129129

130130
//
131131
// Strict Mode

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ exports.retry = (options, fn) => {
211211
times = options;
212212
}
213213
else if ('object' === typeof(options)) {
214-
if (options.times) times = parseInt(options.times, 10);
215-
if (options.interval) interval = parseInt(options.interval, 10);
214+
if (options.times) {times = parseInt(options.times, 10);}
215+
if (options.interval) {interval = parseInt(options.interval, 10);}
216216
}
217217
else {
218218
throw new Error('Unsupported argument type for \'times\': ' + typeof(options));

test/parallel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('parallel', () => {
8383
expect(promiseTools.parallelLimit(tasks, 1), "With 1 parallel").to.eventually.rejectedWith("boom"),
8484
expect(promiseTools.parallelLimit(tasks, 2), "With 2 parallel").to.eventually.rejectedWith("boom"),
8585
expect(promiseTools.parallelLimit(tasks, 3), "With 3 parallel").to.eventually.rejectedWith("boom"),
86-
expect(promiseTools.parallelLimit(tasks, 4), "With 4 parallel").to.eventually.rejectedWith("boom"),
86+
expect(promiseTools.parallelLimit(tasks, 4), "With 4 parallel").to.eventually.rejectedWith("boom")
8787
])
8888
});
8989
});

0 commit comments

Comments
 (0)