Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Lens
Commits
e32c33fc
Commit
e32c33fc
authored
3 years ago
by
Sebastian Malton
Browse files
Options
Download
Email Patches
Plain Diff
Add lint rule
Signed-off-by:
Sebastian Malton
<
sebastian@malton.name
>
parent
c0e0408c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.eslintrc.js
+2
-0
.eslintrc.js
src/common/utils/readableStream.ts
+2
-2
src/common/utils/readableStream.ts
with
4 additions
and
2 deletions
+4
-2
.eslintrc.js
+
2
-
0
View file @
e32c33fc
...
...
@@ -118,6 +118,7 @@ module.exports = {
sourceType
:
"
module
"
,
},
rules
:
{
"
no-irregular-whitespace
"
:
"
error
"
,
"
header/header
"
:
[
2
,
"
./license-header
"
],
"
no-invalid-this
"
:
"
off
"
,
"
@typescript-eslint/no-invalid-this
"
:
[
"
error
"
],
...
...
@@ -199,6 +200,7 @@ module.exports = {
jsx
:
true
,
},
rules
:
{
"
no-irregular-whitespace
"
:
"
error
"
,
"
header/header
"
:
[
2
,
"
./license-header
"
],
"
no-invalid-this
"
:
"
off
"
,
"
@typescript-eslint/no-invalid-this
"
:
[
"
error
"
],
...
...
This diff is collapsed.
Click to expand it.
src/common/utils/readableStream.ts
+
2
-
2
View file @
e32c33fc
...
...
@@ -44,7 +44,7 @@ export class ReadableWebToNodeStream<T extends TypedArray> extends Readable {
/**
*
* @param stream Readable
Stream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
* @param stream ReadableStream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
*/
constructor
(
stream
:
ReadableStream
<
T
>
)
{
super
();
...
...
@@ -85,7 +85,7 @@ export class ReadableWebToNodeStream<T extends TypedArray> extends Readable {
}
/**
* If there is no unresolved read call to Web-API Readable
Stream immediately returns;
* If there is no unresolved read call to Web-API ReadableStream immediately returns;
* otherwise will wait until the read is resolved.
*/
public
async
waitForReadToComplete
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment