From f3666a30be26f8488996ead5baf2ceaeda37e4a5 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 23 Sep 2025 12:28:53 -0400 Subject: [PATCH] fix(ci): lint --- lua/cp/cache.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/cp/cache.lua b/lua/cp/cache.lua index ecb30c5..90c2c2b 100644 --- a/lua/cp/cache.lua +++ b/lua/cp/cache.lua @@ -99,8 +99,8 @@ function M.save() local encoded = vim.json.encode(cache_data) local lines = vim.split(encoded, '\n') - ok, err = pcall(vim.fn.writefile, lines, cache_file) - if not ok then + local write_ok, _ = pcall(vim.fn.writefile, lines, cache_file) + if not write_ok then vim.schedule(function() vim.fn.writefile(lines, cache_file) end)