Merge pull request 'Use 'r' instead of 'nil' for io.open' (#1) from fix-io.open-type-mismatch into remove-dlls-from-repo
Reviewed-on: Auios/BlockLua#1
This commit is contained in:
@@ -134,7 +134,7 @@ end
|
||||
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
function io.lines(fn)
|
||||
local fi, err, fn2 = io.open(fn, nil, 2)
|
||||
local fi, err, fn2 = io.open(fn, 'r', 2)
|
||||
if not fi then error('Error opening file \''..fn2..'\': '..err, 2) end
|
||||
return fi:lines()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user