We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jellydn
Learn more about funding links in repositories.
Report abuse
1 parent c1430e6 commit 5822746Copy full SHA for 5822746
lua/hurl/utils.lua
@@ -70,7 +70,7 @@ util.create_tmp_file = function(content)
70
71
if not tmp_file then
72
util.lor_error('hurl: failed to create tmp file')
73
- util.notify('hurl: failed to create tmp file', vim.log.levels.ERROR)
+ util.notify('hurl: failed to create tmp file', vim.logger.levels.ERROR)
74
return
75
end
76
@@ -80,11 +80,11 @@ util.create_tmp_file = function(content)
80
81
if type(content) == 'table' then
82
local c = vim.fn.join(content, '\n')
83
- f:write(c)
+ file:write(c)
84
else
85
f:write(content)
86
87
- f:close()
+ file:close()
88
89
return tmp_file
90
0 commit comments