refactor: use job instead of args

This commit is contained in:
sxyazi
2024-11-21 12:58:04 +08:00
parent ab7068ef75
commit 139c36e4a7
3 changed files with 14 additions and 14 deletions

View File

@@ -35,12 +35,12 @@ local function setup(st, opts)
end, 500)
end
local function fetch(self, args)
local function fetch(self, job)
-- TODO: remove this once Yazi 0.4 is released
args = args or self
job = job or self
local paths = {}
for _, file in ipairs(args.files) do
for _, file in ipairs(job.files) do
paths[#paths + 1] = tostring(file.url)
end