Use single quotes for identifiers
This commit is contained in:
parent
819671a23a
commit
24f4ad53bc
15 changed files with 73 additions and 73 deletions
|
@ -100,11 +100,11 @@
|
|||
},
|
||||
getOrCreate: function(id, type) {
|
||||
if (typeof id !== 'string') {
|
||||
throw new TypeError('"id" must be a string');
|
||||
throw new TypeError("'id' must be a string");
|
||||
}
|
||||
|
||||
if (type !== 'private' && type !== 'group') {
|
||||
throw new TypeError('"type" must be "private" or "group"; got: ' + type);
|
||||
throw new TypeError(`'type' must be 'private' or 'group'; got: '${type}'`);
|
||||
}
|
||||
|
||||
if (!this._initialFetchComplete) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue