diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-27 23:40:32 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-27 23:43:05 +0200 |
commit | ec6b3ca5aea613d856fe5631728a34db9b4a2c73 (patch) | |
tree | bb73bc39d9601ef315d7fea00bcf3491c93f5f72 | |
parent | a39ab144806eebbcff01e90c734b1157f6256bef (diff) | |
download | sonarqube-ec6b3ca5aea613d856fe5631728a34db9b4a2c73.tar.gz sonarqube-ec6b3ca5aea613d856fe5631728a34db9b4a2c73.zip |
Fix some ruby warnings (don't put space before argument parentheses)
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb | 10 |
1 files 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 => "<b>Cannot edit the review</b> : 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 => "<b>Cannot create the comment</b> : 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 => "<b>Cannot create the comment</b> : 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 => "<b>Cannot delete the comment</b> : access denied." return |