From 602e30b765cc10ae6dfc5414aa183325de78c23f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:47:36 +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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/hurl/utils.lua b/lua/hurl/utils.lua index 404e4a5..e93786f 100644 --- a/lua/hurl/utils.lua +++ b/lua/hurl/utils.lua @@ -120,11 +120,14 @@ util.format = function(body, type) return vim.split(body, '\n') end -- Modify the command to use the temp file path - local modifiedCommand = vim.tbl_deep_extend("force", formatters[type], {tempFilePath}) + local modifiedCommand = vim.tbl_deep_extend('force', formatters[type], { tempFilePath }) local stdout, readErr = pcall(vim.fn.readfile, tempFilePath) if not stdout or #stdout == 0 then util.log_error('Failed to read formatted body from temp file: ' .. (readErr or 'Unknown error')) - util.notify('Failed to read formatted body from temp file: ' .. (readErr or 'Unknown error'), vim.log.levels.ERROR) + util.notify( + 'Failed to read formatted body from temp file: ' .. (readErr or 'Unknown error'), + vim.log.levels.ERROR + ) return vim.split(body, '\n') end -- Ensure to delete the temporary file