remove useless string.format(s)
This commit is contained in:
parent
d030a5c39b
commit
a28fd8f2e6
1 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ function M.clean()
|
|||
packager.get_base_dir(),
|
||||
vim.schedule_wrap(function(err, handle)
|
||||
if err then
|
||||
logger:log("error", string.format("failed to clean; reason: %s", err))
|
||||
logger:log("error", "failed to clean; reason: %s", err)
|
||||
else
|
||||
local queue = {}
|
||||
|
||||
|
|
@ -79,9 +79,9 @@ function M.clean()
|
|||
local co = coroutine.create(function()
|
||||
local ok = vim.fn.delete(dir, "rf")
|
||||
if ok then
|
||||
logger:log("clean", string.format("deleted %s", name))
|
||||
logger:log("clean", "deleted %s", name)
|
||||
else
|
||||
logger:log("error", string.format("failed to delete %s", name))
|
||||
logger:log("error", "failed to delete %s", name)
|
||||
end
|
||||
end)
|
||||
coroutine.resume(co)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue