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:
1 parent
d9485e6497
commit
e40fe4092d
1 file changed
+1
-1
@@ -39,7 +39,7 @@ class Glitch::KeywordMute < ApplicationRecord
|
||||
end
|
||||
|
||||
def =~(str)
|
||||
regex ? regex =~ str : nil
|
||||
regex =~ str
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in new issue
Block a user