Skip to content

Commit

Permalink
stream,test: remove unneeded eslint-disable directives
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Jun 19, 2022
1 parent e5ad2ae commit b48b9f0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/internal/streams/operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ function asIndexedPairs(options = undefined) {
}

async function some(fn, options = undefined) {
// eslint-disable-next-line no-unused-vars
for await (const unused of filter.call(this, fn, options)) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-fs-opendir.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ doAsyncIterBreakTest().then(common.mustCall());
async function doAsyncIterReturnTest() {
const dir = await fs.promises.opendir(testDir);
await (async function() {
for await (const dirent of dir) { // eslint-disable-line no-unused-vars
for await (const dirent of dir) {
return;
}
})();
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream-readable-async-iterators.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function tests() {
});

await (async () => {
for await (const d of readable) { // eslint-disable-line no-unused-vars
for await (const d of readable) {
return;
}
})();
Expand Down
2 changes: 0 additions & 2 deletions test/parallel/test-whatwg-readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,6 @@ class Source {
});

async function read(stream) {
// eslint-disable-next-line no-unused-vars
for await (const _ of stream.values({ preventCancel: true }))
return;
}
Expand All @@ -1319,7 +1318,6 @@ class Source {
const stream = new ReadableStream(source);

async function read(stream) {
// eslint-disable-next-line no-unused-vars
for await (const _ of stream.values({ preventCancel: false }))
return;
}
Expand Down

0 comments on commit b48b9f0

Please sign in to comment.