lib: fix linting warnings and errors · nodejs/node@283f1e8 · GitHub
Skip to content

Commit 283f1e8

Browse files
committed
lib: fix linting warnings and errors
PR-URL: #41805 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent ebc370c commit 283f1e8

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

lib/internal/bootstrap/node.js

Lines changed: 1 addition & 1 deletion

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: 5 additions & 1 deletion

0 commit comments

Comments
 (0)