typo

Andrew Cantino 11 anos atrás
pai
commit
3692041bb3
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      bin/twitter_stream.rb

+ 1 - 1
bin/twitter_stream.rb

@@ -70,7 +70,7 @@ def load_and_run(agents)
70 70
         recent_tweets.shift if recent_tweets.length > DUPLICATE_DETECTION_LENGTH
71 71
         puts status["text"]
72 72
         filter_to_agent_map.keys.each do |filter|
73
-          if (filter.downcase.split(SEPARATOR) - status["text"].downcase.split(SEPARATOR)).reject(&:empty) == [] # Hacky McHackerson
73
+          if (filter.downcase.split(SEPARATOR) - status["text"].downcase.split(SEPARATOR)).reject(&:empty?) == [] # Hacky McHackerson
74 74
             filter_to_agent_map[filter].each do |agent|
75 75
               puts " -> #{agent.name}"
76 76
               agent.process_tweet(filter, status)