diff options
author | Robert Speicher <robert@gitlab.com> | 2017-06-02 22:00:28 +0300 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-06-02 22:00:28 +0300 |
commit | 3cdac884c77534b2a8572cdc2660d1fd93d05bce (patch) | |
tree | aea6a4dbe5b5368fbac6a975c3747dd9076b8b42 /app/models/commit.rb | |
parent | 2662fd721558f916fe621f4eb5cef43e7754beec (diff) | |
parent | 4cfa5ce4a95379a9ebe08f57b170af4b5ee9a9a5 (diff) |
Merge branch 'rc/enable-PreferredHashMethods-cop' into 'master'
Enable the Style/PreferredHashMethods cop
See merge request !11883
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 0a16af688bd..1a766c9f6d0 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -177,7 +177,7 @@ class Commit if RequestStore.active? key = "commit_author:#{author_email.downcase}" # nil is a valid value since no author may exist in the system - if RequestStore.store.has_key?(key) + if RequestStore.store.key?(key) @author = RequestStore.store[key] else @author = find_author_by_any_email |