refactor: simplify default value assignment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user