Skip to content

Commit

Permalink
Fix registry deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Jul 10, 2024
1 parent 42f1a62 commit 0acec34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/sorbet/sigils/valid_sigil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module Sorbet
# If an `ExactStrictness` level is specified, it will be used in offense messages and autocorrect.
# Otherwise, if a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
class ValidSigil < RuboCop::Cop::Cop # rubocop:todo InternalAffairs/InheritDeprecatedCopClass
@registry = Cop.registry # So we can properly subclass this cop
@registry = Registry.global # So we can properly subclass this cop

def investigate(processed_source)
return if processed_source.tokens.empty?
Expand Down

0 comments on commit 0acec34

Please sign in to comment.