From c9a1f7af23122aa9d42439c5cc4d2f4d60a8e1f2 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 18 Apr 2023 09:00:12 +0200 Subject: [PATCH] mobile-config-autoconfig: tweak css_files_update Refactor the condition code, so it's easier to read. --- src/mobile-config-autoconfig.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mobile-config-autoconfig.js b/src/mobile-config-autoconfig.js index 68a6bb7..049f216 100644 --- a/src/mobile-config-autoconfig.js +++ b/src/mobile-config-autoconfig.js @@ -250,12 +250,12 @@ function css_files_update() { var file = css_file_get(name); if (file.exists()) { - if (g_ff_version == ff_previous) { - css_file_delete_outdated(name, file); - } else { + if (g_ff_version != ff_previous) { log("Removing outdated file: " + file.path + " (Firefox" + " version changed)"); file.remove(false); + } else { + css_file_delete_outdated(name, file); } }