Skip to content

Commit 5822746

Browse files
authoredJan 27, 2024
feat: Updated lua/hurl/utils.lua
1 parent c1430e6 commit 5822746

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎lua/hurl/utils.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ util.create_tmp_file = function(content)
7070

7171
if not tmp_file then
7272
util.lor_error('hurl: failed to create tmp file')
73-
util.notify('hurl: failed to create tmp file', vim.log.levels.ERROR)
73+
util.notify('hurl: failed to create tmp file', vim.logger.levels.ERROR)
7474
return
7575
end
7676

@@ -80,11 +80,11 @@ util.create_tmp_file = function(content)
8080
end
8181
if type(content) == 'table' then
8282
local c = vim.fn.join(content, '\n')
83-
f:write(c)
83+
file:write(c)
8484
else
8585
f:write(content)
8686
end
87-
f:close()
87+
file:close()
8888

8989
return tmp_file
9090
end

0 commit comments

Comments
 (0)
Please sign in to comment.