From ec6b3ca5aea613d856fe5631728a34db9b4a2c73 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Wed, 27 Apr 2011 23:40:32 +0200 Subject: [PATCH] Fix some ruby warnings (don't put space before argument parentheses) --- .../WEB-INF/app/controllers/reviews_controller.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb index 4df243f2de1..abaa6e11c24 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb @@ -46,7 +46,7 @@ class ReviewsController < ApplicationController # POST def assign - @review = Review.find (params[:id]) + @review = Review.find(params[:id]) unless current_user render :text => "Cannot edit the review : access denied." return @@ -60,7 +60,7 @@ class ReviewsController < ApplicationController # GET def comment_form - @review = Review.find (params[:id]) + @review = Review.find(params[:id]) if !params[:comment_id].blank? && @review @comment = @review.comments.find(params[:comment_id]) end @@ -69,7 +69,7 @@ class ReviewsController < ApplicationController # POST def save_comment - @review = Review.find (params[:id]) + @review = Review.find(params[:id]) unless current_user render :text => "Cannot create the comment : access denied." return @@ -95,7 +95,7 @@ class ReviewsController < ApplicationController # POST def flag_as_false_positive - @review = Review.find (params[:id]) + @review = Review.find(params[:id]) unless current_user render :text => "Cannot create the comment : access denied." return @@ -118,7 +118,7 @@ class ReviewsController < ApplicationController # POST def delete_comment - @review = Review.find (params[:id]) + @review = Review.find(params[:id]) unless current_user render :text => "Cannot delete the comment : access denied." return -- 2.39.5