mobile-config-autoconfig: tweak css_files_update

Refactor the condition code, so it's easier to read.
This commit is contained in:
Oliver Smith 2023-04-18 09:00:12 +02:00
parent aaa603fae7
commit c9a1f7af23
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -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);
} }
} }