From fff4ff8c38e232eaecf9d9970b3c0da7017613a1 Mon Sep 17 00:00:00 2001 From: boltlessengineer Date: Sun, 8 Sep 2024 07:40:08 +0000 Subject: [PATCH] chore: autoformat with stylua --- lua/rest-nvim/parser/init.lua | 2 +- spec/parser/http_parser_spec.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/rest-nvim/parser/init.lua b/lua/rest-nvim/parser/init.lua index ae182c2..50b2d8d 100644 --- a/lua/rest-nvim/parser/init.lua +++ b/lua/rest-nvim/parser/init.lua @@ -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 diff --git a/spec/parser/http_parser_spec.lua b/spec/parser/http_parser_spec.lua index 632985a..bcbe6ba 100644 --- a/spec/parser/http_parser_spec.lua +++ b/spec/parser/http_parser_spec.lua @@ -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))