mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-30 19:43:47 +00:00 
			
		
		
		
	lint: Replace 'return undefined;' with 'return;'.
Also adds a custom rule to eslint. Since the recommended way of extending eslint is to create plugins as standalone npm packages, the separate rule is published as 'eslint-plugins-empty-returns'. Fixes #8669.
This commit is contained in:
		
				
					committed by
					
						 showell
						showell
					
				
			
			
				
	
			
			
			
						parent
						
							7ce139a798
						
					
				
				
					commit
					b22e8dc2b7
				
			| @@ -26,7 +26,7 @@ exports.autofocus = function (selector) { | ||||
| exports.password_quality = function (password, bar, password_field) { | ||||
|     // We load zxcvbn.js asynchronously, so the variable might not be set. | ||||
|     if (typeof zxcvbn === 'undefined') { | ||||
|         return undefined; | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|     var min_length = password_field.data('minLength'); | ||||
| @@ -58,7 +58,7 @@ exports.password_quality = function (password, bar, password_field) { | ||||
|  | ||||
| exports.password_warning = function (password, password_field) { | ||||
|     if (typeof zxcvbn === 'undefined') { | ||||
|         return undefined; | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|     var min_length = password_field.data('minLength'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user