diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-05 12:07:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-05 12:07:37 +0300 |
commit | cf98b5d69a84324cad0f23b786a0ec0937c90944 (patch) | |
tree | 96a65fa7e9f4560ca87fd3db9e9072ae46e14639 /app/finders | |
parent | 5fd38b5f78df56538ff4362f7be734c65891f2d8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/security/jobs_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/security/jobs_finder.rb b/app/finders/security/jobs_finder.rb index cffc1d52a3e..99bcf97f43c 100644 --- a/app/finders/security/jobs_finder.rb +++ b/app/finders/security/jobs_finder.rb @@ -20,7 +20,7 @@ module Security end def initialize(pipeline:, job_types: []) - if self.class == Security::JobsFinder + if self.instance_of?(Security::JobsFinder) raise NotImplementedError, 'This is an abstract class, please instantiate its descendants' end |