Update waf_common.lua

pull/368/head
midoks 2 years ago
parent 5ef4b3d05d
commit 177a08af91
  1. 6
      plugins/op_waf/waf/lua/waf_common.lua

@ -390,6 +390,12 @@ function _M.read_file(self, name)
return data return data
end end
function _M.file_exists(self,path)
local file = io.open(path, "rb")
if file then file:close() end
return file ~= nil
end
function _M.select_rule(self, rules) function _M.select_rule(self, rules)
if not rules then return {} end if not rules then return {} end

Loading…
Cancel
Save