Add eqeqeq rule but require == for null
This commit is contained in:
parent
64a4d2e717
commit
0086216c9d
30 changed files with 64 additions and 63 deletions
|
@ -18,7 +18,7 @@ describe('getStreamWithTimeout', () => {
|
|||
stream: Readable,
|
||||
chunk: string | null
|
||||
): Promise<unknown> => {
|
||||
const promise = once(stream, chunk === null ? 'end' : 'data');
|
||||
const promise = once(stream, chunk == null ? 'end' : 'data');
|
||||
stream.push(chunk);
|
||||
return promise;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue