diff options
author | Rémy Coutable <remy@rymai.me> | 2019-03-13 13:38:28 +0000 |
---|---|---|
committer | John Jarvis <jarv@gitlab.com> | 2019-03-13 14:41:57 +0100 |
commit | b2d300f3b7fe5afba0a353e4364c6e379c2211be (patch) | |
tree | e17472c6811c213a2da28b1754995f9ad7346c73 /lib | |
parent | d5fa495b8b3f0f9aed4af43987b17a80c8e3e5e6 (diff) | |
download | gitlab-ce-b2d300f3b7fe5afba0a353e4364c6e379c2211be.tar.gz |
Merge branch 'sh-fix-blank-codeowners-ce' into 'master'
Fix 500 error caused by CODEOWNERS with no matches
Closes gitlab-ee#10282
See merge request gitlab-org/gitlab-ce!26072
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/user_extractor.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/user_extractor.rb b/lib/gitlab/user_extractor.rb index 874599688bb..b41d085ee77 100644 --- a/lib/gitlab/user_extractor.rb +++ b/lib/gitlab/user_extractor.rb @@ -16,6 +16,7 @@ module Gitlab def users return User.none unless @text.present? + return User.none if references.empty? @users ||= User.from_union(union_relations) end |