From dc31077bc517ac15a828102a386108e320c226d3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 31 Jan 2022 23:36:06 +0600 Subject: [PATCH] chore: formated with stylua (#564) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lua/lualine/utils/utils.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/lualine/utils/utils.lua b/lua/lualine/utils/utils.lua index 17dcea4..b7613ad 100644 --- a/lua/lualine/utils/utils.lua +++ b/lua/lualine/utils/utils.lua @@ -151,8 +151,8 @@ end ---@return any Result of fn. function M.retry_call(fn, args, times) times = times or 3 - for _=0,times-1 do - local result = {pcall(fn, unpack(args))} + for _ = 0, times - 1 do + local result = { pcall(fn, unpack(args)) } if result[1] == true then return unpack(result, 2) end @@ -166,7 +166,7 @@ end ---@return function retry call wraped function function M.retry_call_wrap(fn, times) return function(...) - return M.retry_call(fn, {...}, times) + return M.retry_call(fn, { ... }, times) end end