Commit 22f1d2a1 authored by Shinya Maeda's avatar Shinya Maeda

Append gurad clause. remove unless debris.empty

parent 72b0af2c
......@@ -96,6 +96,8 @@ module Gitlab
end
def reverse_line
return if stream.size <= 0
pos = 0
max = stream.size
debris = ''
......@@ -110,7 +112,7 @@ module Gitlab
end
end
yield(debris) unless debris.empty?
yield(debris)
end
def calc_read_size(pos, max)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment