refactor: simplify default value assignment

This commit is contained in:
sxyazi
2025-03-19 15:36:45 +08:00
parent 79193b3917
commit 273019910c

View File

@@ -5,9 +5,9 @@ local function entry(st, job)
local R = rt.mgr.ratio
job = type(job) == "string" and { args = { job } } or job
st.parent = st.parent and st.parent or R.parent
st.current = st.current and st.current or R.current
st.preview = st.preview and st.preview or R.preview
st.parent = st.parent or R.parent
st.current = st.current or R.current
st.preview = st.preview or R.preview
local act, to = string.match(job.args[1] or "", "(.-)-(.+)")
if act == "min" then