mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
js: Indent case clauses in switch statements.
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
f3726db89a
commit
6924d501bc
@@ -80,13 +80,13 @@ exports.same_recipient = function util_same_recipient(a, b) {
|
||||
}
|
||||
|
||||
switch (a.type) {
|
||||
case "private":
|
||||
if (a.to_user_ids === undefined) {
|
||||
return false;
|
||||
}
|
||||
return a.to_user_ids === b.to_user_ids;
|
||||
case "stream":
|
||||
return exports.same_stream_and_topic(a, b);
|
||||
case "private":
|
||||
if (a.to_user_ids === undefined) {
|
||||
return false;
|
||||
}
|
||||
return a.to_user_ids === b.to_user_ids;
|
||||
case "stream":
|
||||
return exports.same_stream_and_topic(a, b);
|
||||
}
|
||||
|
||||
// should never get here
|
||||
|
||||
Reference in New Issue
Block a user