Skip to content

Commit

Permalink
String#lines is already an Array, no need for the #to_a
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Jul 24, 2020
1 parent 75c4e61 commit 62070aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gems/pending/util/extensions/miq-array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def to_miq_a

class String
def to_miq_a
ActiveSupport::Deprecation.warn("String#to_miq_a should be replaced by String#lines.to_a", caller.drop(0))
lines.to_a
ActiveSupport::Deprecation.warn("String#to_miq_a should be replaced by String#lines", caller.drop(0))
lines
end
end

Expand Down

0 comments on commit 62070aa

Please sign in to comment.