summaryrefslogtreecommitdiff
path: root/lib/ansi2html.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-15 16:28:37 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-15 16:28:37 +0300
commit6238d2dc3644194baf30a868248c617bf22883dd (patch)
tree503ba2c84110cc1c562a2c612cda0d0c691cf811 /lib/ansi2html.rb
parentfa1d7aaa99d13278a83d955804077811bb65c553 (diff)
downloadgitlab-ci-6238d2dc3644194baf30a868248c617bf22883dd.tar.gz
Enable more rubocop rules
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/ansi2html.rb')
-rw-r--r--lib/ansi2html.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansi2html.rb b/lib/ansi2html.rb
index 7e0c2a1..b85c85a 100644
--- a/lib/ansi2html.rb
+++ b/lib/ansi2html.rb
@@ -188,7 +188,7 @@ module Ansi2html
color_name = COLOR[color_index]
return nil if color_name.nil?
- return get_color_class(["term", prefix, color_name])
+ get_color_class(["term", prefix, color_name])
end
def set_fg_color_256(command_stack)
@@ -212,11 +212,11 @@ module Ansi2html
return unless color_index >= 0
return unless color_index <= 255
- return get_color_class(["xterm", prefix, color_index])
+ get_color_class(["xterm", prefix, color_index])
end
def get_color_class(segments)
- return [segments].flatten.compact.join('-')
+ [segments].flatten.compact.join('-')
end
end
end