server_events_dispatch: Refactor 'reaction' case to use switch/case.

This commit is contained in:
YashRE42
2020-06-20 19:24:47 +00:00
committed by Tim Abbott
parent bc69521caa
commit bf86422116

View File

@@ -150,10 +150,13 @@ export function dispatch_normal_event(event) {
}
case "reaction":
if (event.op === "add") {
reactions.add_reaction(event);
} else if (event.op === "remove") {
reactions.remove_reaction(event);
switch (event.op) {
case "add":
reactions.add_reaction(event);
break;
case "remove":
reactions.remove_reaction(event);
break;
}
break;