about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-10-24 19:03:59 -0500
committerDavid Yip <yipdw@member.fsf.org>2017-10-24 19:03:59 -0500
commite40fe4092dfd927dd4b6605b7b398fcd0984d903 (patch)
tree337b0943aaf66fd66b153d74f2b440d6c663c36c
parentd9485e6497b46aa16d8d9399389fc614fc5f21eb (diff)
Remove nil check in Glitch::KeywordMute#=~.
@regex can no longer be nil, so we don't need to check it.
-rw-r--r--app/models/glitch/keyword_mute.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/glitch/keyword_mute.rb b/app/models/glitch/keyword_mute.rb
index f0969c65e..73de4d4b7 100644
--- a/app/models/glitch/keyword_mute.rb
+++ b/app/models/glitch/keyword_mute.rb
@@ -39,7 +39,7 @@ class Glitch::KeywordMute < ApplicationRecord
     end
 
     def =~(str)
-      regex ? regex =~ str : nil
+      regex =~ str
     end
 
     private