]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/RedundantArrayConstructor (#36919).
authorGo MAEDA <maeda@farend.jp>
Wed, 7 Jun 2023 12:39:40 +0000 (12:39 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 7 Jun 2023 12:39:40 +0000 (12:39 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22252 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/mercurial_adapter.rb

index 3651f1b982d00253cd0f66317b811ec5cc399ac5..24a2705c2dee2577f9ce8a19f4b1b8ccfb26eccf 100644 (file)
@@ -358,7 +358,7 @@ module Redmine
         def as_ary(o)
           return [] unless o
 
-          o.is_a?(Array) ? o : Array[o]
+          o.is_a?(Array) ? o : [o]
         end
         private :as_ary
       end