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 Jul 9, 2024
1 parent 67f583b commit 6e8ceb2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/hurl/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6e8ceb2

Please sign in to comment.