mobile-config-autoconfig: tweak css_files_update
Refactor the condition code, so it's easier to read.
This commit is contained in:
		
							parent
							
								
									aaa603fae7
								
							
						
					
					
						commit
						c9a1f7af23
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -250,12 +250,12 @@ function css_files_update() {
 | 
				
			||||||
        var file = css_file_get(name);
 | 
					        var file = css_file_get(name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (file.exists()) {
 | 
					        if (file.exists()) {
 | 
				
			||||||
            if (g_ff_version == ff_previous) {
 | 
					            if (g_ff_version != ff_previous) {
 | 
				
			||||||
                css_file_delete_outdated(name, file);
 | 
					 | 
				
			||||||
            } else {
 | 
					 | 
				
			||||||
                log("Removing outdated file: " + file.path + " (Firefox" +
 | 
					                log("Removing outdated file: " + file.path + " (Firefox" +
 | 
				
			||||||
                    " version changed)");
 | 
					                    " version changed)");
 | 
				
			||||||
                file.remove(false);
 | 
					                file.remove(false);
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                css_file_delete_outdated(name, file);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue