Skip to content

Commit

Permalink
feat: Updated lua/hurl/main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Feb 29, 2024
1 parent e3c0fb4 commit fed85aa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lua/hurl/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ function M.setup()
)
run_at_lines(result.start_line, result.end_line, opts.fargs)
else
utils.log_info('hurl: not HTTP method found in the current line' .. result.start_line)
if result.start_line then
utils.log_info('hurl: not HTTP method found in the current line ' .. result.start_line)
else
utils.log_info('hurl: no HTTP method found in the current line')
end
utils.notify('hurl: no HTTP method found in the current line', vim.log.levels.INFO)
end
end, { nargs = '*', range = true })
Expand Down Expand Up @@ -416,7 +420,11 @@ function M.setup()
vim.cmd('copen')
end)
else
utils.log_info('hurl: not HTTP method found in the current line' .. result.start_line)
if result.start_line then
utils.log_info('hurl: not HTTP method found in the current line ' .. result.start_line)
else
utils.log_info('hurl: no HTTP method found in the current line')
end
utils.notify('hurl: no HTTP method found in the current line', vim.log.levels.INFO)
end
end, { nargs = '*', range = true })
Expand Down

0 comments on commit fed85aa

Please sign in to comment.