mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 08:28:17 +01:00
Add eqeqeq rule but require == for null
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user