Skip to content

Commit c43e583

Browse files
committed
lib: fix linting warnings and errors
1 parent 99a90db commit c43e583

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

lib/internal/blob.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ class Blob {
127127

128128
/**
129129
* @param {SourcePart[]} [sources]
130-
* @param {{
130+
* @param {{]
131+
*
131132
* endings? : string,
132133
* type? : string,
133134
* }} [options]

lib/internal/bootstrap/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const {
5656
} = primordials;
5757
const config = internalBinding('config');
5858
const internalTimers = require('internal/timers');
59-
const { deprecate, lazyDOMExceptionClass } = require('internal/util');
59+
const { deprecate } = require('internal/util');
6060

6161
setupProcessObject();
6262

lib/internal/streams/utils.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const {
66
SymbolIterator,
77
} = primordials;
88

9-
const kDestroyed = Symbol('kDestroyed');
109
const kIsErrored = Symbol('kIsErrored');
1110
const kIsReadable = Symbol('kIsReadable');
1211
const kIsDisturbed = Symbol('kIsDisturbed');
@@ -112,14 +111,6 @@ function isReadableFinished(stream, strict) {
112111
);
113112
}
114113

115-
function isDisturbed(stream) {
116-
return !!(stream && (
117-
stream.readableDidRead ||
118-
stream.readableAborted ||
119-
stream[kIsDisturbed]
120-
));
121-
}
122-
123114
function isReadable(stream) {
124115
if (stream && stream[kIsReadable] != null) return stream[kIsReadable];
125116
const r = isReadableNodeStream(stream);

lib/readline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ Interface.prototype._ttyWrite = function(s, key) {
12831283
/**
12841284
* Creates an `AsyncIterator` object that iterates through
12851285
* each line in the input stream as a string.
1286-
* @returns {Symbol.AsyncIterator}
1286+
* @returns {symbol.AsyncIterator}
12871287
*/
12881288
Interface.prototype[SymbolAsyncIterator] = function() {
12891289
if (this[kLineObjectStream] === undefined) {

0 commit comments

Comments
 (0)