mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 06:28:23 +00:00
eslint: Fix unicorn/no-lonely-if.
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v24.0.0/docs/rules/no-lonely-if.md Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
6acbcec39d
commit
2f80415756
@@ -74,10 +74,8 @@ exports.initialize_kitchen_sink_stuff = function () {
|
||||
if (message_viewport.at_top()) {
|
||||
navigate.up();
|
||||
}
|
||||
} else if (delta > 0) {
|
||||
if (message_viewport.at_bottom()) {
|
||||
navigate.down();
|
||||
}
|
||||
} else if (delta > 0 && message_viewport.at_bottom()) {
|
||||
navigate.down();
|
||||
}
|
||||
|
||||
message_viewport.set_last_movement_direction(delta);
|
||||
|
||||
Reference in New Issue
Block a user