mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
eslint: change no-plusplus from warning to 2 and fix violations.
This commit is contained in:
@@ -131,9 +131,9 @@ exports.actions_menu_handle_keyboard = function (key) {
|
||||
if (index === -1) {
|
||||
index = 0;
|
||||
} else if ((key === 'down_arrow' || key === 'vim_down') && index < items.length - 1) {
|
||||
++index;
|
||||
index += 1;
|
||||
} else if ((key === 'up_arrow' || key === 'vim_up') && index > 0) {
|
||||
--index;
|
||||
index -= 1;
|
||||
}
|
||||
items.eq(index).focus();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user