fix (#19110)
This commit is contained in:
parent
7949d10177
commit
219d77ace8
|
@ -35,7 +35,7 @@ export const MESSAGE_TYPES = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export function messageTypes([type]) {
|
export function messageTypes([type]) {
|
||||||
if (!([type] in MESSAGE_TYPES)) {
|
if (!(type in MESSAGE_TYPES)) {
|
||||||
assert('type is not a valid message type.');
|
assert('type is not a valid message type.');
|
||||||
}
|
}
|
||||||
return MESSAGE_TYPES[type];
|
return MESSAGE_TYPES[type];
|
||||||
|
|
Loading…
Reference in New Issue