diff --git a/app/controllers/projects/builds_controller.rb b/app/controllers/projects/builds_controller.rb
index d97bc93f8dcd95390d5e3b8c35b10b431ab86eec..0fd35bcb790c9175e20a28e67e26a0ef27b9ca2c 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