summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/projects/builds_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/projects/builds_controller.rb b/app/controllers/projects/builds_controller.rb
index d97bc93f8dc..0fd35bcb790 100644
--- a/app/controllers/projects/builds_controller.rb
+++ b/app/controllers/projects/builds_controller.rb
@@ -121,8 +121,7 @@ class Projects::BuildsController < Projects::ApplicationController
end
def build
- @build ||= project.builds
- .find_by!(id: params[:id])
+ @build ||= project.builds.find(params[:id])
.present(current_user: current_user)
end