Skip to content

Commit

Permalink
fix: first line of file
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 20, 2022
1 parent 7f4743a commit c749404
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lazy/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c749404

Please sign in to comment.