mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Refactor all .length === 0 patterns in JS (#30045)
				
					
				
			This pattern comes of often during review, so let's fix it once and for all. Did not test, but changes are trivial enough imho.
This commit is contained in:
		| @@ -34,7 +34,7 @@ export function initCompSearchUserBox() { | ||||
|           } | ||||
|         }); | ||||
|  | ||||
|         if (allowEmailInput && items.length === 0 && looksLikeEmailAddressCheck.test(searchQuery)) { | ||||
|         if (allowEmailInput && !items.length && looksLikeEmailAddressCheck.test(searchQuery)) { | ||||
|           const resultItem = { | ||||
|             title: searchQuery, | ||||
|             description: allowEmailDescription, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user