Skip to content

Commit

Permalink
Bug fix---correct luacheck warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
spc476 committed Oct 1, 2019
1 parent 93d994e commit b5bafab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions port70/readfile.lua
Expand Up @@ -91,7 +91,7 @@ end

return function(filename,ext)
if filename:match(ext) then
local file,err = io.open(filename,"r")
local file = io.open(filename,"r")
if not file then
return false,'Not found'
end
Expand Down Expand Up @@ -150,7 +150,7 @@ return function(filename,ext)
return true,table.concat(acc,"\r\n") .. "\r\n.\r\n"

else
local file,err = io.open(filename,"rb")
local file = io.open(filename,"rb")
if not file then
return false,'Not found'
end
Expand Down

0 comments on commit b5bafab

Please sign in to comment.