Fix Style/MultipleComparison (#33313)
Co-authored-by: Matt Jankowski <matt@jankowski.online>
This commit is contained in:
parent
8233293429
commit
c12b85e7a9
2 changed files with 1 additions and 4 deletions
|
@ -29,9 +29,6 @@ Style/IfUnlessModifier:
|
||||||
Style/KeywordArgumentsMerging:
|
Style/KeywordArgumentsMerging:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Style/MultipleComparison:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Style/NumericLiterals:
|
Style/NumericLiterals:
|
||||||
AllowedPatterns:
|
AllowedPatterns:
|
||||||
- \d{4}_\d{2}_\d{2}_\d{6}
|
- \d{4}_\d{2}_\d{2}_\d{6}
|
||||||
|
|
|
@ -13,7 +13,7 @@ class ActivityPub::TagManager
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
def public_collection?(uri)
|
def public_collection?(uri)
|
||||||
uri == COLLECTIONS[:public] || uri == 'as:Public' || uri == 'Public'
|
uri == COLLECTIONS[:public] || %w(as:Public Public).include?(uri)
|
||||||
end
|
end
|
||||||
|
|
||||||
def url_for(target)
|
def url_for(target)
|
||||||
|
|
Loading…
Reference in a new issue