]> source.dussan.org Git - sonarqube.git/commitdiff
Remove useless comment from metrics_controller.rb
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 8 Dec 2011 18:02:36 +0000 (19:02 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 8 Dec 2011 18:07:46 +0000 (19:07 +0100)
sonar-server/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb

index 435943a7b6186414858ae04a80a4b8156b335941..056aaee028353971e2d28fa661d49a4d237ab826 100644 (file)
 #
 class MetricsController < ApplicationController
 
-  # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
   before_filter :admin_required
 
   SECTION=Navigation::SECTION_CONFIGURATION
-  
+
   def index
-    @metrics = Metric.all.select {|metric| metric.user_managed?}
-    @domains = Metric.all.map {|metric| metric.domain(false)}.compact.uniq.sort
+    @metrics = Metric.all.select { |metric| metric.user_managed? }
+    @domains = Metric.all.map { |metric| metric.domain(false) }.compact.uniq.sort
     if params['id']
       @metric=Metric.find(params['id'].to_i)
       params['domain']=@metric.domain(false)
@@ -35,7 +34,7 @@ class MetricsController < ApplicationController
     end
     render :action => 'index'
   end
+
   def save_from_web
     if params[:id]
       metric = Metric.find(params[:id].to_i)