Skip to content

Commit c4a28ce

Browse files
Eckii24Copilot
andauthored
refactor: add missing parameter
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent da814fb commit c4a28ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/mcphub/utils/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function M.pretty_json(str, unescape_slashes)
194194
local ok, parsed = pcall(vim.json.decode, str)
195195
if not ok then
196196
vim.notify("Failed to parse JSON string", vim.log.levels.INFO)
197-
return M.format_json_string(str)
197+
return M.format_json_string(str, unescape_slashes)
198198
end
199199
local sorted = sort_keys_recursive(parsed)
200200
local encoded = vim.json.encode(sorted)

0 commit comments

Comments
 (0)