Fix rubocop warnings

This commit is contained in:
Tom Hughes 2016-12-02 22:01:40 +00:00
parent 0e6d4f18da
commit c8f26592a7
7 changed files with 13 additions and 26 deletions

View file

@ -448,6 +448,5 @@ class ApplicationController < ActionController::Base
end
# override to stop oauth plugin sending errors
def invalid_oauth_response
end
def invalid_oauth_response; end
end

View file

@ -22,6 +22,5 @@ class ExportController < ApplicationController
end
end
def embed
end
def embed; end
end

View file

@ -32,11 +32,9 @@ class RedactionsController < ApplicationController
end
end
def show
end
def show; end
def edit
end
def edit; end
def update
# note - don't update the user ID

View file

@ -95,20 +95,15 @@ class SiteController < ApplicationController
@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

View file

@ -5,6 +5,5 @@ class SubscribeOldChangesets < ActiveRecord::Migration
end
end
def down
end
def down; end
end

View file

@ -5,6 +5,5 @@ class SubscribeAuthorsToDiaryEntries < ActiveRecord::Migration
end
end
def down
end
def down; end
end

View file

@ -183,9 +183,7 @@ class ApplicationHelperTest < ActionView::TestCase
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