This commit is contained in:
Angel Garbarino 2023-02-09 13:08:37 -07:00 committed by GitHub
parent 7949d10177
commit 219d77ace8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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];