mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	lint: Require folding of } on same line in else if statements.
This commit is contained in:
		@@ -117,11 +117,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) {
 | 
			
		||||
    } else if ((key === 'down_arrow' || key === 'vim_down') && index < items.length - 1) {
 | 
			
		||||
        ++index;
 | 
			
		||||
    }
 | 
			
		||||
    else if ((key === 'up_arrow' || key === 'vim_up') && index > 0) {
 | 
			
		||||
    } else if ((key === 'up_arrow' || key === 'vim_up') && index > 0) {
 | 
			
		||||
        --index;
 | 
			
		||||
    }
 | 
			
		||||
    items.eq(index).focus();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user