Browse Source

[Minor] Avoid comparing string with boolean

when CT is not found
tags/1.9.3
Alexander Moisseev 5 years ago
parent
commit
f24be02993
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/plugins/lua/mime_types.lua

+ 1
- 1
src/plugins/lua/mime_types.lua View File

local detected_different = false local detected_different = false
if detected_ct and detected_ct ~= ct then if detected_ct and detected_ct ~= ct then
local v_detected = map:get_key(detected_ct) 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 detected_different = true
end end
if v then if v then

Loading…
Cancel
Save