refactor: remove compatibility code for Yazi 0.3

This commit is contained in:
sxyazi
2024-12-23 15:29:59 +08:00
parent f1317106ab
commit c7feb90930
5 changed files with 7 additions and 43 deletions

View File

@@ -154,10 +154,7 @@ local function setup(st, opts)
end, opts.order)
end
local function fetch(self, job)
-- TODO: remove this once Yazi 0.4 is released
job = job or self
local function fetch(_, job)
local cwd = job.files[1].url:parent()
local repo = root(cwd)
if not repo then