Skip to content

Commit

Permalink
avoid redefining a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TymurGubayev authored Oct 2, 2023
1 parent d06b5a8 commit 937e6d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gui/job-details.lua
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,7 @@ local function show_job_details()
qerror("Unhandled screen context: ".. df.job_details_context_type[scr.context])
end

local dlg = JobDetails{ job = job, context = scr.context }
dlg:show()
JobDetails{ job = job, context = scr.context }:show()
end

-- --------------------
Expand Down

0 comments on commit 937e6d2

Please sign in to comment.