]> git.openstreetmap.org Git - rails.git/commitdiff
Fix rubocop warnings
authorTom Hughes <tom@compton.nu>
Fri, 2 Dec 2016 22:01:40 +0000 (22:01 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 2 Dec 2016 22:01:40 +0000 (22:01 +0000)
app/controllers/application_controller.rb
app/controllers/export_controller.rb
app/controllers/redactions_controller.rb
app/controllers/site_controller.rb
db/migrate/20150111192335_subscribe_old_changesets.rb
db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb
test/helpers/application_helper_test.rb

index 2b6d62bb52521d3811f5fa46844a6c034ed79fb3..09a35beb351f67ac3e40e4eb7caa9023fd2e2396 100644 (file)
@@ -448,6 +448,5 @@ class ApplicationController < ActionController::Base
   end
 
   # override to stop oauth plugin sending errors
   end
 
   # override to stop oauth plugin sending errors
-  def invalid_oauth_response
-  end
+  def invalid_oauth_response; end
 end
 end
index bd020f29b6ea11a1b960ec5f8e71d0885a48fd4c..fa7944516620e442064b8f8d5adb118d92042761 100644 (file)
@@ -22,6 +22,5 @@ class ExportController < ApplicationController
     end
   end
 
     end
   end
 
-  def embed
-  end
+  def embed; end
 end
 end
index 31dd7273f114d2ff217961830c7d80c29ecc41cb..129318191a65c4566ebf5f3a472c4893fc065121 100644 (file)
@@ -32,11 +32,9 @@ class RedactionsController < ApplicationController
     end
   end
 
     end
   end
 
-  def show
-  end
+  def show; end
 
 
-  def edit
-  end
+  def edit; end
 
   def update
     # note - don't update the user ID
 
   def update
     # note - don't update the user ID
index 5131629acfd57140e0c3eedf06e0d7cefc87aaaa..1a4c9f148425eef9621568d8d822fd0a49a1a916 100644 (file)
@@ -95,20 +95,15 @@ class SiteController < ApplicationController
     @locale = params[:copyright_locale] || I18n.locale
   end
 
     @locale = params[:copyright_locale] || I18n.locale
   end
 
-  def welcome
-  end
+  def welcome; end
 
 
-  def help
-  end
+  def help; end
 
 
-  def about
-  end
+  def about; end
 
 
-  def export
-  end
+  def export; end
 
 
-  def offline
-  end
+  def offline; end
 
   def preview
     render :text => RichText.new(params[:format], params[:text]).to_html
 
   def preview
     render :text => RichText.new(params[:format], params[:text]).to_html
index cd0938318d7b83a4eca608abe36f2728520b4d50..cca8293f55ef9e34f5fa7ebebf5cd7f9609d5060 100644 (file)
@@ -5,6 +5,5 @@ class SubscribeOldChangesets < ActiveRecord::Migration
     end
   end
 
     end
   end
 
-  def down
-  end
+  def down; end
 end
 end
index 2dfbbf2c8c84360ca428d2f3e4a11493ed41e778..3fcbdf5fb3e9a8477645d2a4d3fce67bd8e8561e 100644 (file)
@@ -5,6 +5,5 @@ class SubscribeAuthorsToDiaryEntries < ActiveRecord::Migration
     end
   end
 
     end
   end
 
-  def down
-  end
+  def down; end
 end
 end
index 97b35467bff15cec351610f93ed9c4fd38eba9f0..a25bae99d4da5bb901b6c9a0c73c3b793e8ec798 100644 (file)
@@ -183,9 +183,7 @@ class ApplicationHelperTest < ActionView::TestCase
     assert_match %r{^<span title=".*">4 months</span>$}, date
   end
 
     assert_match %r{^<span title=".*">4 months</span>$}, date
   end
 
-  def test_body_class
-  end
+  def test_body_class; end
 
 
-  def test_current_page_class
-  end
+  def test_current_page_class; end
 end
 end