mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-19 07:58:46 +01:00
Add eqeqeq rule but require == for null
This commit is contained in:
@@ -336,7 +336,7 @@ function binaryToUint8Array(
|
||||
length: number
|
||||
): Uint8Array {
|
||||
const target = get(object, path);
|
||||
if (target === null || target === undefined) {
|
||||
if (target == null) {
|
||||
throw new Error(`binaryToUint8Array: Falsey path ${path}`);
|
||||
}
|
||||
|
||||
@@ -357,7 +357,7 @@ function binaryToUint8Array(
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function getInteger(object: any, path: string): number {
|
||||
const target = get(object, path);
|
||||
if (target === null || target === undefined) {
|
||||
if (target == null) {
|
||||
throw new Error(`getInteger: Falsey path ${path}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user