mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	js: Convert _.isEmpty(a) to a.length !== 0.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							8abf5da717
						
					
				
				
					commit
					d0b0a64af3
				
			@@ -25,7 +25,7 @@ function immediate(f) {
 | 
			
		||||
// Find the files we need to run.
 | 
			
		||||
const finder = require('./finder.js');
 | 
			
		||||
const files = finder.find_files_to_run(); // may write to console
 | 
			
		||||
if (_.isEmpty(files)) {
 | 
			
		||||
if (files.length === 0) {
 | 
			
		||||
    throw "No tests found";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -963,7 +963,7 @@ exports.build_page = function () {
 | 
			
		||||
        const node = $("#allowed_domains_label").parent();
 | 
			
		||||
        if (org_join_restrictions === 'only_selected_domain') {
 | 
			
		||||
            node.show();
 | 
			
		||||
            if (_.isEmpty(page_params.realm_domains)) {
 | 
			
		||||
            if (page_params.realm_domains.length === 0) {
 | 
			
		||||
                overlays.open_modal('realm_domains_modal');
 | 
			
		||||
            }
 | 
			
		||||
        } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user