Skip to content

Commit

Permalink
chore: autoformat with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
boltlessengineer authored and github-actions[bot] committed Sep 8, 2024
1 parent 34f3fe9 commit fff4ff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/rest-nvim/parser/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function parser.parse_redirect_path(node, source, ctx)
local path = get_node_field_text(node, "path", source)
if path then
path = expand_variables(path, ctx)
return function (res)
return function(res)
if not res.body then
return
end
Expand Down
2 changes: 1 addition & 1 deletion spec/parser/http_parser_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ Authorization: Bearer {{TOKEN}}
}, c.lv)
end)

it("parse response-redirect syntax", function ()
it("parse response-redirect syntax", function()
local source = "GET localhost:3000\n\n>> path/to/file.json\n"
local _, tree = utils.ts_parse_source(source)
local node = assert(tree:root():child(0))
Expand Down

0 comments on commit fff4ff8

Please sign in to comment.