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:
@@ -56,7 +56,7 @@ function ensureStringed(thing: any): any {
|
||||
|
||||
return res;
|
||||
}
|
||||
if (thing === null) {
|
||||
if (thing == null) {
|
||||
return null;
|
||||
}
|
||||
throw new Error(`unsure of how to jsonify object of type ${typeof thing}`);
|
||||
|
||||
Reference in New Issue
Block a user