Remove nil check in Glitch::KeywordMute#=~.

@regex can no longer be nil, so we don't need to check it.
lolsob-rspec
David Yip 2017-10-24 19:03:59 -05:00
parent 53c2ea1a86
commit b8c462c42b
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class Glitch::KeywordMute < ApplicationRecord
end
def =~(str)
regex ? regex =~ str : nil
regex =~ str
end
private