Combine delegations in one line

This commit is contained in:
Jacob Vosmaer 2017-04-07 11:17:25 +02:00
parent 7ecc7f6a56
commit 6a07a2430b

View file

@ -1156,8 +1156,7 @@ class Repository
@project.repository_storage_path @project.repository_storage_path
end end
delegate :gitaly_repository, to: :raw_repository delegate :gitaly_channel, :gitaly_repository, to: :raw_repository
delegate :gitaly_channel, to: :raw_repository
def initialize_raw_repository def initialize_raw_repository
Gitlab::Git::Repository.new(project.repository_storage, path_with_namespace + '.git') Gitlab::Git::Repository.new(project.repository_storage, path_with_namespace + '.git')