Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/system_check.rb2
-rw-r--r--lib/system_check/base_executor.rb2
2 files changed, 2 insertions, 2 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
diff --git a/lib/system_check/base_executor.rb b/lib/system_check/base_executor.rb
index 2c2b33461d9..f76f44f3a28 100644
--- a/lib/system_check/base_executor.rb
+++ b/lib/system_check/base_executor.rb
@@ -17,7 +17,7 @@ module SystemCheck
#
# @param [BaseCheck] check class
def <<(check)
- raise ArgumentError unless check.is_a? BaseCheck
+ raise ArgumentError unless check < BaseCheck
@checks << check
end
end