Skip to content

Commit

Permalink
Merge pull request #297 from ruby/ignore-warnings-2.6
Browse files Browse the repository at this point in the history
Fixed test fails caused by 2.6 warnings
  • Loading branch information
hsbt authored Dec 7, 2018
2 parents 80e00e2 + 81763da commit f0a897e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def trace(*strings) # :nodoc:

def sort_options(options) # :nodoc:
options.sort_by { |opt|
opt.select { |o| o =~ /^-/ }.map(&:downcase).sort.reverse
opt.select { |o| o.is_a?(String) && o =~ /^-/ }.map(&:downcase).sort.reverse
}
end
private :sort_options
Expand Down

0 comments on commit f0a897e

Please sign in to comment.