fix: first line of file

This commit is contained in:
Folke Lemaitre 2022-11-21 00:29:17 +01:00
parent 7f4743ac30
commit c749404423
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 1 deletions

View File

@ -134,8 +134,9 @@ end
function M.head(file)
local f = io.open(file)
if f then
local ret = f:read()
f:close()
return f:read()
return ret
end
end