Software / code / prosody-modules
Comparison
mod_firewall/mod_firewall.lua @ 2080:a435db77a5e5
mod_firewall: Silence warning about empty if branch [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 11 Mar 2016 18:52:48 +0100 |
| parent | 2078:11539785cb92 |
| child | 2099:a8c701631d0b |
comparison
equal
deleted
inserted
replaced
| 2079:edec9de0220a | 2080:a435db77a5e5 |
|---|---|
| 162 elseif line:sub(-1,-1) == "\\" then | 162 elseif line:sub(-1,-1) == "\\" then |
| 163 line_hold = (line_hold or "")..line:sub(1,-2); | 163 line_hold = (line_hold or "")..line:sub(1,-2); |
| 164 end | 164 end |
| 165 line_no = line_no + 1; | 165 line_no = line_no + 1; |
| 166 | 166 |
| 167 if line_hold or line:find("^[#;]") then | 167 if line_hold or line:find("^[#;]") then -- luacheck: ignore 542 |
| 168 -- No action; comment or partial line | 168 -- No action; comment or partial line |
| 169 elseif line == "" then | 169 elseif line == "" then |
| 170 if state == "rules" then | 170 if state == "rules" then |
| 171 return nil, ("Expected an action on line %d for preceding criteria") | 171 return nil, ("Expected an action on line %d for preceding criteria") |
| 172 :format(line_no); | 172 :format(line_no); |