mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Fix RuboCop offense Style/RedundantArrayConstructor (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@22252 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bd2a9027f1
commit
f41afc7e72
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user