Fix Style/MultipleComparison

This commit is contained in:
Nick Schonning 2024-12-14 20:58:27 -05:00
parent 5cf37248cc
commit b5d3ca0419
No known key found for this signature in database
GPG key ID: 5DDAAD9C9AAFFD9F
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] || ['as:Public', 'Public'].include?(uri)
end
def url_for(target)