Skip to content

Commit f0a897e

Browse files
authored
Merge pull request #297 from ruby/ignore-warnings-2.6
Fixed test fails caused by 2.6 warnings
2 parents 80e00e2 + 81763da commit f0a897e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rake/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def trace(*strings) # :nodoc:
392392

393393
def sort_options(options) # :nodoc:
394394
options.sort_by { |opt|
395-
opt.select { |o| o =~ /^-/ }.map(&:downcase).sort.reverse
395+
opt.select { |o| o.is_a?(String) && o =~ /^-/ }.map(&:downcase).sort.reverse
396396
}
397397
end
398398
private :sort_options

0 commit comments

Comments
 (0)