From: Go MAEDA Date: Wed, 7 Jun 2023 12:39:40 +0000 (+0000) Subject: Fix RuboCop offense Style/RedundantArrayConstructor (#36919). X-Git-Tag: 5.1.0~118 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f41afc7e72657a06a584fd24f946d97d68528458;p=redmine.git Fix RuboCop offense Style/RedundantArrayConstructor (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22252 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index 3651f1b98..24a2705c2 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -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