Skip to content

Commit

Permalink
Removing diff_limit variable
Browse files Browse the repository at this point in the history
It's not set in Webui::RequestController#build_results, so it's getting nil all the
way down.
  • Loading branch information
danidoni committed Mar 14, 2024
1 parent b0ca06d commit 21704e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/api/app/views/webui/request/_actions_details.html.haml
Expand Up @@ -25,7 +25,6 @@
= link_to((render partial: 'action_text', locals: { action: action_item, action_index: action_index }),
next_prev_path(number: bs_request.number,
request_action_id: action_item.id,
full_diff: diff_limit,
diff_to_superseded: diff_to_superseded_id, page_name: page_name),
class: "dropdown-item #{action_item.id == active_action.id ? 'active' : ''}",
'aria-current': 'true')
Expand Down
2 changes: 1 addition & 1 deletion src/api/app/views/webui/request/_request_header.html.haml
Expand Up @@ -77,5 +77,5 @@
= render partial: 'actions_details', locals: { bs_request: bs_request, action: action, active_action: active_action,
prev_action: prev_action, next_action: next_action,
actions: supported_actions, actions_count: supported_actions.count,
diff_to_superseded_id: diff_to_superseded_id, diff_limit: diff_limit,
diff_to_superseded_id: diff_to_superseded_id,
page_name: page_name }
2 changes: 1 addition & 1 deletion src/api/app/views/webui/request/build_results.html.haml
Expand Up @@ -8,7 +8,7 @@
= render partial: 'request_header',
locals: { bs_request: @bs_request, staging_status: @staging_status, action: @action, active_action: @active_action,
prev_action: @prev_action, next_action: @next_action, supported_actions: @supported_actions,
diff_to_superseded_id: @diff_to_superseded_id, diff_limit: @diff_limit, page_name: 'request_build_results',
diff_to_superseded_id: @diff_to_superseded_id, page_name: 'request_build_results',
bs_requests: @watched_requests, packages: @watched_packages, projects: @watched_projects }
= render partial: 'request_tabs',
locals: { bs_request: @bs_request, bs_request_action: @bs_request_action, issues: @issues, active_action: @active_action,
Expand Down

0 comments on commit 21704e3

Please sign in to comment.