From fd51a4fe582b0e755c26caea605064fca4b54bff Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 20 Sep 2019 17:54:54 +0000 Subject: [PATCH] code cleanup: rubocop: fix Style/CommentedKeyword in app/models/repository/cvs.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18492 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 4 ---- app/models/repository/cvs.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d738e93f8..8507358f5 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1180,10 +1180,6 @@ Style/ColonMethodCall: - 'test/unit/default_data_test.rb' - 'test/unit/lib/redmine/export/pdf_test.rb' -Style/CommentedKeyword: - Exclude: - - 'app/models/repository/cvs.rb' - # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb index ef6848d28..e823275e4 100644 --- a/app/models/repository/cvs.rb +++ b/app/models/repository/cvs.rb @@ -190,7 +190,7 @@ class Repository::Cvs < Repository each do |changeset| changeset.update_attribute :revision, next_revision_number end - end # transaction + end @current_revision_number = nil end