mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-12-16 03:08:54 +08:00
Make tests pass in Ruby 2.4
This commit is contained in:
@@ -18,7 +18,7 @@ module YouPlot
|
||||
# compare values
|
||||
r = b[1] <=> a[1]
|
||||
# If the values are the same, compare by name
|
||||
r = a[0] <=> b[0] if r == 0
|
||||
r = a[0] <=> b[0] if r.zero?
|
||||
r
|
||||
end
|
||||
.transpose
|
||||
|
||||
Reference in New Issue
Block a user