Skip to content
Snippets Groups Projects
Commit e40fe409 authored by David Yip's avatar David Yip
Browse files

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

@regex can no longer be nil, so we don't need to check it.
parent d9485e64
Branches
Tags
No related merge requests found
......@@ -39,7 +39,7 @@ class Glitch::KeywordMute < ApplicationRecord
end
def =~(str)
regex ? regex =~ str : nil
regex =~ str
end
private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment