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 ...@@ -96,6 +96,8 @@ module Gitlab
end end
def reverse_line def reverse_line
return if stream.size <= 0
pos = 0 pos = 0
max = stream.size max = stream.size
debris = '' debris = ''
...@@ -110,7 +112,7 @@ module Gitlab ...@@ -110,7 +112,7 @@ module Gitlab
end end
end end
yield(debris) unless debris.empty? yield(debris)
end end
def calc_read_size(pos, max) 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