From: Go MAEDA Date: Sun, 25 Aug 2019 05:04:48 +0000 (+0000) Subject: Code cleanup: RuboCop: Fix Lint/UnneededRequireStatement in app/models/wiki_page.rb X-Git-Tag: 4.1.0~680 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0553e8375ced0da79df1432d1679a029b290a094;p=redmine.git Code cleanup: RuboCop: Fix Lint/UnneededRequireStatement in app/models/wiki_page.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18392 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b8620be7f..a2c3c5018 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -649,11 +649,6 @@ Lint/UnifiedInteger: Exclude: - 'test/unit/query_test.rb' -# Cop supports --auto-correct. -Lint/UnneededRequireStatement: - Exclude: - - 'app/models/wiki_page.rb' - # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. Lint/UnusedBlockArgument: diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index 29bc0e5b7..50fbe83c8 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -18,7 +18,6 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. require 'diff' -require 'enumerator' class WikiPage < ActiveRecord::Base include Redmine::SafeAttributes