diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-04 17:40:58 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-05 11:21:51 +0300 |
commit | 48b17e991a960c006da278d4c1f534b1db81d070 (patch) | |
tree | d4746354205a4695d87143082b560b6b5efac7cb /lib/gitlab/checks | |
parent | 10d0f438d823418a4a4f4e4f52e8f35ed10f2a05 (diff) |
Add helper for accessing lfs_objects for project
This makes accessing LFS Objects for a project easier
project.lfs_storage_project.lfs_objects`
becomes
project.all_lfs_objects
This will make the refactor in
https://gitlab.com/gitlab-org/gitlab-ce/issues/39769 easier to deal
with.
Diffstat (limited to 'lib/gitlab/checks')
-rw-r--r-- | lib/gitlab/checks/lfs_integrity.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/checks/lfs_integrity.rb b/lib/gitlab/checks/lfs_integrity.rb index f7276a380dc..f0e5773ec3c 100644 --- a/lib/gitlab/checks/lfs_integrity.rb +++ b/lib/gitlab/checks/lfs_integrity.rb @@ -15,8 +15,7 @@ module Gitlab return false unless new_lfs_pointers.present? - existing_count = @project.lfs_storage_project - .lfs_objects + existing_count = @project.all_lfs_objects .where(oid: new_lfs_pointers.map(&:lfs_oid)) .count |