mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Add eqeqeq rule but require == for null
This commit is contained in:
@@ -19,7 +19,7 @@ export class Address {
|
||||
|
||||
public static parse(value: string): Address {
|
||||
const match = value.match(ADDRESS_REGEXP);
|
||||
strictAssert(match !== null, `Invalid Address: ${value}`);
|
||||
strictAssert(match != null, `Invalid Address: ${value}`);
|
||||
const [whole, uuid, deviceId] = match;
|
||||
strictAssert(whole === value, 'Integrity check');
|
||||
return Address.create(uuid, parseInt(deviceId, 10));
|
||||
|
||||
Reference in New Issue
Block a user