mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
condense: Clean up continue/else/if idiom.
If an `if` calls continue, then you don't need the clutter of an `else`. (I wonder if eslint can enforce these the same way it does for return/else.)
This commit is contained in:
@@ -210,10 +210,14 @@ exports.condense_and_collapse = function (elems) {
|
||||
if (message.condensed === true) {
|
||||
condense_row($(elem));
|
||||
continue;
|
||||
} else if (message.condensed === false) {
|
||||
}
|
||||
|
||||
if (message.condensed === false) {
|
||||
uncondense_row($(elem));
|
||||
continue;
|
||||
} else if (long_message) {
|
||||
}
|
||||
|
||||
if (long_message) {
|
||||
// By default, condense a long message.
|
||||
condense_row($(elem));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user