Fix Style/MultipleComparison (#33313)

Co-authored-by: Matt Jankowski <matt@jankowski.online>
This commit is contained in:
Nick Schonning 2025-01-07 06:24:52 -05:00 committed by GitHub
parent 8233293429
commit c12b85e7a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -29,9 +29,6 @@ Style/IfUnlessModifier:
Style/KeywordArgumentsMerging:
Enabled: false
Style/MultipleComparison:
Enabled: false
Style/NumericLiterals:
AllowedPatterns:
- \d{4}_\d{2}_\d{2}_\d{6}

View File

@ -13,7 +13,7 @@ class ActivityPub::TagManager
}.freeze
def public_collection?(uri)
uri == COLLECTIONS[:public] || uri == 'as:Public' || uri == 'Public'
uri == COLLECTIONS[:public] || %w(as:Public Public).include?(uri)
end
def url_for(target)