Remove nil check in Glitch::KeywordMute#=~.
@regex can no longer be nil, so we don't need to check it.lolsob-rspec
parent
53c2ea1a86
commit
b8c462c42b
|
@ -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 New Issue