luci-base: dispatcher.lua: remove redundant check_fs_depends() call
authorJo-Philipp Wich <jo@mein.io>
Wed, 5 Feb 2020 16:42:58 +0000 (17:42 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 5 Feb 2020 16:42:58 +0000 (17:42 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/dispatcher.lua

index 72884b72240b033bfd158f09cac68b395dd09f38..c227b68c858d00731a85010a9a5a8db7a5c7fa7b 100644 (file)
@@ -139,7 +139,7 @@ local function check_depends(spec)
                return true
        end
 
-       if type(spec.depends.fs) == "table" and not check_fs_depends(spec.depends.fs) then
+       if type(spec.depends.fs) == "table" then
                local satisfied = false
                local alternatives = (#spec.depends.fs > 0) and spec.depends.fs or { spec.depends.fs }
                for _, alternative in ipairs(alternatives) do