summaryrefslogtreecommitdiff
path: root/app/presenters/blobs/unfold_presenter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters/blobs/unfold_presenter.rb')
-rw-r--r--app/presenters/blobs/unfold_presenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/blobs/unfold_presenter.rb b/app/presenters/blobs/unfold_presenter.rb
index b921b5bf670..90b471abf22 100644
--- a/app/presenters/blobs/unfold_presenter.rb
+++ b/app/presenters/blobs/unfold_presenter.rb
@@ -108,7 +108,7 @@ module Blobs
def limit(lines)
return lines if full?
- lines[since - 1..to - 1]
+ lines[since - 1..to - 1] || []
end
end
end