From 6e8ceb2f22db9cf3c23104baa3d3195310cbba6f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:19:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- lua/hurl/utils.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/hurl/utils.lua b/lua/hurl/utils.lua index 1ab4ab3..193ab4e 100644 --- a/lua/hurl/utils.lua +++ b/lua/hurl/utils.lua @@ -105,7 +105,11 @@ end ---@return string[] | nil util.format = function(body, type) local formatters = _HURL_GLOBAL_CONFIG.formatters - or { json = { 'jq' }, html = { 'prettier', '--parser', 'html' }, xml = { 'tidy', '-xml', '-i', '-q' } } + or { + json = { 'jq' }, + html = { 'prettier', '--parser', 'html' }, + xml = { 'tidy', '-xml', '-i', '-q' }, + } -- If no formatter is defined, return the body if not formatters[type] then @@ -172,7 +176,7 @@ end util.is_xml_response = function(content_type) return string.find(content_type, 'text/xml') ~= nil - or string.find(content_type, 'application/xml') ~= nil + or string.find(content_type, 'application/xml') ~= nil end --- Check if nvim is running in nightly or stable version