diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-02-13 12:20:56 +0100 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-05-31 14:33:03 +0200 |
commit | a4460f420bbbac30fbcec3395261c89749b52bbd (patch) | |
tree | c6d609fa635fc1b13dcfeb0a7017cc0e77030bd1 /lib/system_check.rb | |
parent | 442735978ca8f3e074a282edfc65c110bd06e079 (diff) | |
download | gitlab-ce-a4460f420bbbac30fbcec3395261c89749b52bbd.tar.gz |
Fix a few method signature checks
Diffstat (limited to 'lib/system_check.rb')
-rw-r--r-- | lib/system_check.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system_check.rb b/lib/system_check.rb index 79603dfc7cb..ba22a40f5af 100644 --- a/lib/system_check.rb +++ b/lib/system_check.rb @@ -11,7 +11,7 @@ module SystemCheck # @param [Array<BaseCheck>] checks classes of corresponding checks to be executed in the same order # @param [BaseExecutor] executor_klass optionally specifiy a different executor class def self.run(component, checks = [], executor_klass = SimpleExecutor) - unless executor_klass.is_a? BaseExecutor + unless executor_klass < BaseExecutor raise ArgumentError, 'Invalid executor' end |