Skip to content

Commit

Permalink
Do not use action as "local" variable
Browse files Browse the repository at this point in the history
buildresult is a controller action, re-using it as variable is a desaster bound
to happen...
  • Loading branch information
hennevogel committed Sep 21, 2023
1 parent e41741a commit 5101acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/controllers/webui/project_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,12 @@ def move_path
end

def monitor
unless (buildresult = monitor_buildresult)
unless (build_results = monitor_buildresult)
@buildresult_unavailable = true
return
end

monitor_parse_buildresult(buildresult)
monitor_parse_buildresult(build_results)

# extract repos
repohash = {}
Expand Down

0 comments on commit 5101acf

Please sign in to comment.