This commit is contained in:
Angel Garbarino 2023-02-09 13:08:37 -07:00 committed by GitHub
parent 230286b880
commit 42c716b04b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ export const MESSAGE_TYPES = {
};
export function messageTypes([type]) {
if (!([type] in MESSAGE_TYPES)) {
if (!(type in MESSAGE_TYPES)) {
assert('type is not a valid message type.');
}
return MESSAGE_TYPES[type];