Skip to content

Commit

Permalink
Fix ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Jan 25, 2024
1 parent 8011f4f commit 2db001c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export default async function promiseChunk<T>(
for (const item of generator()) {
const promise = item.then(
(r: T): T => {
queue.splice(queue.indexOf(promise), 1);
void queue.splice(queue.indexOf(promise), 1);
return r;
},
(e: Error): Error => {
queue.splice(queue.indexOf(promise), 1);
void queue.splice(queue.indexOf(promise), 1);
return e;
},
);
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('promiseChunk', () => {

const generator = function* (): Generator<Promise<number>> {
for (const [value, ms] of input) {
// eslint-disable-next-line no-loop-func
// eslint-disable-next-line @typescript-eslint/no-loop-func
yield new Promise((resolve) => {
setTimeout(() => {
s += `${value}\n`;
Expand Down

0 comments on commit 2db001c

Please sign in to comment.