mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-03 14:42:36 +01:00
Fix Style/MultipleComparison
This commit is contained in:
parent
5cf37248cc
commit
b5d3ca0419
2 changed files with 1 additions and 4 deletions
|
@ -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}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue