Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent 5954f98 commit 0a45ceb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/hurl/http_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ local function find_hurl_entry_positions_in_buffer()
local hurl_file = current_node:parent()

local current_node_idx = 1
if (hurl_file and hurl_file:type() == 'hurl_file') then
if hurl_file and hurl_file:type() == 'hurl_file' then
-- Find the current node index
for node in hurl_file:iter_children() do
if (node:id() == current_node:id()) then
if node:id() == current_node:id() then
break
end
current_node_idx = current_node_idx + 1
Expand All @@ -38,7 +38,7 @@ local function find_hurl_entry_positions_in_buffer()
return {
current = 0,
start_line = cursor_line,
end_line = cursor_line
end_line = cursor_line,
}
end

Expand Down

0 comments on commit 0a45ceb

Please sign in to comment.