summaryrefslogtreecommitdiff
path: root/app/helpers/lfs_helper.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2016-07-22 16:40:22 +0200
committerJacob Vosmaer <jacob@gitlab.com>2016-07-22 17:54:04 +0200
commit23425401d1b574dd87babfffda4d59b9f91d1538 (patch)
tree9dbd6b34babf6487e037368bd2de1bf1b2d6f405 /app/helpers/lfs_helper.rb
parentd199b3cdd7a43d46d88a6386b95b48c0b40b8315 (diff)
downloadgitlab-ce-23425401d1b574dd87babfffda4d59b9f91d1538.tar.gz
Rubocop
Diffstat (limited to 'app/helpers/lfs_helper.rb')
-rw-r--r--app/helpers/lfs_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/lfs_helper.rb b/app/helpers/lfs_helper.rb
index 6146a2ad849..ae230ee1878 100644
--- a/app/helpers/lfs_helper.rb
+++ b/app/helpers/lfs_helper.rb
@@ -56,7 +56,8 @@ module LfsHelper
@storage_project ||= begin
result = project
- while result.forked? do
+ loop do
+ break unless result.forked?
result = result.forked_from_project
end