diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-27 09:08:28 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-27 09:08:28 +0000 |
commit | 6ac4a6713ed3196af899011f7e18658e16ebaac0 (patch) | |
tree | c60237cb5203d171481b765d31bfead080d063cf /app/finders | |
parent | d2b64c37bdef067656fdc8deb4728a2fbc6c2729 (diff) | |
download | gitlab-ce-6ac4a6713ed3196af899011f7e18658e16ebaac0.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/keys_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/keys_finder.rb b/app/finders/keys_finder.rb index 0263d809246..e7e78d71a58 100644 --- a/app/finders/keys_finder.rb +++ b/app/finders/keys_finder.rb @@ -46,7 +46,7 @@ class KeysFinder return keys unless params[:fingerprint].present? raise InvalidFingerprint unless valid_fingerprint_param? - keys.where(fingerprint_query).first # rubocop: disable CodeReuse/ActiveRecord + keys.find_by(fingerprint_query) # rubocop: disable CodeReuse/ActiveRecord end def valid_fingerprint_param? |