Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git/commit.rb')
-rw-r--r--lib/gitlab/git/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/commit.rb b/lib/gitlab/git/commit.rb
index 11eb0a584ab..c0601c7795c 100644
--- a/lib/gitlab/git/commit.rb
+++ b/lib/gitlab/git/commit.rb
@@ -320,7 +320,7 @@ module Gitlab
end
def first_ref_by_oid(repo)
- ref = repo.refs_by_oid(oid: id, limit: 1)&.first
+ ref = repo.refs_by_oid(oid: id, limit: 1).first
return unless ref