BigW Consortium Gitlab

Commit 6be609dd by Shinya Maeda

much better

parent dddfa28e
...@@ -92,13 +92,7 @@ module Gitlab ...@@ -92,13 +92,7 @@ module Gitlab
private private
def read_last_lines(limit) def read_last_lines(limit)
result = '' to_enum(:reverse_line).first(limit).reverse.join
reverse_line do |line|
result = line + result
limit -= 1
return result if limit <= 0
end
result
end end
def reverse_line def reverse_line
......
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