Parcourir la source

[Minor] Avoid comparing string with boolean

when CT is not found
tags/1.9.3
Alexander Moisseev il y a 5 ans
Parent
révision
f24be02993
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/plugins/lua/mime_types.lua

+ 1
- 1
src/plugins/lua/mime_types.lua Voir le fichier

@@ -1090,7 +1090,7 @@ local function check_mime_type(task)
local detected_different = false
if detected_ct and detected_ct ~= ct then
local v_detected = map:get_key(detected_ct)
if v_detected > v then v = v_detected end
if not v or v_detected and v_detected > v then v = v_detected end
detected_different = true
end
if v then

Chargement…
Annuler
Enregistrer