mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-16 23:22:01 +00:00
Remove nil check in Glitch::KeywordMute#=~.
@regex can no longer be nil, so we don't need to check it.
This commit is contained in:
parent
d9485e6497
commit
e40fe4092d
|
@ -39,7 +39,7 @@ class Glitch::KeywordMute < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def =~(str)
|
def =~(str)
|
||||||
regex ? regex =~ str : nil
|
regex =~ str
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue