Skip to content

Commit

Permalink
Fix luacheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheophileDiot committed Oct 18, 2023
1 parent 1bea6be commit 6314b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions clamav/clamav.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ function clamav:scan()
-- Header case : check if we have a filename
if typ == "header" then
local found = false
-- luacheck: ignore 213
for i, header in ipairs(res) do
for _, header in ipairs(res) do
if header:find('^.*filename="(.*)".*$') then
found = true
break
Expand Down
3 changes: 1 addition & 2 deletions virustotal/virustotal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ function virustotal:check_file()
-- Header case : check if we have a filename
if typ == "header" then
local found = false
-- luacheck: ignore 213
for i, header in ipairs(res) do
for _, header in ipairs(res) do
if header:find('^.*filename="(.*)".*$') then
found = true
break
Expand Down

0 comments on commit 6314b0a

Please sign in to comment.