diff options
author | Go MAEDA <maeda@farend.jp> | 2023-06-07 12:39:40 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-06-07 12:39:40 +0000 |
commit | f41afc7e72657a06a584fd24f946d97d68528458 (patch) | |
tree | ffbe56e87becb87fb6e16739218fd66a7624c0e6 /lib | |
parent | bd2a9027f1189b6962ac099a1e6d3a61c2570355 (diff) | |
download | redmine-f41afc7e72657a06a584fd24f946d97d68528458.tar.gz redmine-f41afc7e72657a06a584fd24f946d97d68528458.zip |
Fix RuboCop offense Style/RedundantArrayConstructor (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@22252 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/scm/adapters/mercurial_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |