Skip to content

Commit c2b1084

Browse files
committed
fix: Linting error.
1 parent aa0c507 commit c2b1084

File tree

1 file changed

+1
-1
lines changed
  • hyperproof/lib/cfa_security_controls/hyperproof

1 file changed

+1
-1
lines changed

hyperproof/lib/cfa_security_controls/hyperproof/proofs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def self.proofs
2424
private_class_method def self.proofs_for_namespace(namespace)
2525
namespace.constants.each_with_object([]) do |const_name, collectors|
2626
const = namespace.const_get(const_name)
27-
if const.is_a?(Class) && const.method_defined?(:collect) && const.instance_methods(false).include?(:name)
27+
if const.is_a?(Class) && const.method_defined?(:collect) && const.method_defined?(:name, false)
2828
collectors << const
2929
elsif const.is_a?(Module)
3030
collectors.concat(proofs_for_namespace(const))

0 commit comments

Comments
 (0)