Skip to content

Commit 30b3b6e

Browse files
committed
Rubocop auto correct
1 parent d49a11b commit 30b3b6e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/youplot/backends/processing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def count_values(arr, tally: true, reverse: false)
2121
# compare values
2222
r = b[1] <=> a[1]
2323
# If the values are the same, compare by name
24-
r = a[0] <=> b[0] if r == 0
24+
r = a[0] <=> b[0] if r.zero?
2525
r
2626
end
2727

lib/youplot/parser.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ def sub_parser_add_xscale
163163
end
164164

165165
def sub_parser_add_canvas
166-
canvas_types = UnicodePlot::Canvas::CANVAS_CLASS_MAP.keys.join(", ")
167-
sub_parser.on_head('--canvas STR', String, "type of canvas", "(#{canvas_types})") do |v|
166+
canvas_types = UnicodePlot::Canvas::CANVAS_CLASS_MAP.keys.join(', ')
167+
sub_parser.on_head('--canvas STR', String, 'type of canvas', "(#{canvas_types})") do |v|
168168
params.canvas = v.to_sym
169169
end
170170
end

test/youplot/iris_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def fixture(fname)
109109
assert_equal fixture('iris-boxplot.txt'), @stderr_file.read
110110
end
111111

112-
# Yeah, lineplot/lineplots don't make sense too.
112+
# Yeah, lineplot/lineplots don't make sense too.
113113
# Just checking the behavior.
114114

115115
test :c do

0 commit comments

Comments
 (0)