]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/ElseAlignment in lib/redmine/plugin.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Oct 2019 11:22:06 +0000 (11:22 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Oct 2019 11:22:06 +0000 (11:22 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18703 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
lib/redmine/plugin.rb

index 7002203ccd33a26b58892c206aea01a909f91e73..528940a60088b9b9f0d125163f8d5d3dc05e7786 100644 (file)
@@ -110,7 +110,6 @@ Layout/ElseAlignment:
     - 'app/models/issue_query.rb'
     - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
     - 'lib/redmine/i18n.rb'
-    - 'lib/redmine/plugin.rb'
 
 # Cop supports --auto-correct.
 Layout/EmptyLineAfterGuardClause:
index b3982fcfd1a79f35c548d1802c2f3550ebca7de8..51811ac9bfb3c87526ed0d4c3a7aad860cd21d38 100644 (file)
@@ -501,22 +501,22 @@ module Redmine
 
     class MigrationContext < ActiveRecord::MigrationContext
       def up(target_version = nil)
-        selected_migrations = if block_given?
-          migrations.select { |m| yield m }
-        else
-          migrations
-        end
-
+        selected_migrations =
+          if block_given?
+            migrations.select { |m| yield m }
+          else
+            migrations
+          end
         Migrator.new(:up, selected_migrations, target_version).migrate
       end
 
       def down(target_version = nil)
-        selected_migrations = if block_given?
-          migrations.select { |m| yield m }
-        else
-          migrations
-        end
-
+        selected_migrations =
+          if block_given?
+            migrations.select { |m| yield m }
+          else
+            migrations
+          end
         Migrator.new(:down, selected_migrations, target_version).migrate
       end