about summary refs log tree commit homepage
path: root/lib/dtas
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-01-23 08:48:34 +0000
committerEric Wong <e@80x24.org>2015-01-23 08:48:34 +0000
commitef6dc55d9c40aaac9d1fbe5438dbaedc2ddad5e0 (patch)
tree15a3263f46e1183504919cf548e8a406bdaac5a4 /lib/dtas
parentddf4460bb8233d5d8ac9015b1ef34316d9681e23 (diff)
downloaddtas-ef6dc55d9c40aaac9d1fbe5438dbaedc2ddad5e0.tar.gz
@on_readable is always set, so there's no point in checking it
again when we need to call it.
Diffstat (limited to 'lib/dtas')
-rw-r--r--lib/dtas/watchable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/watchable.rb b/lib/dtas/watchable.rb
index 7778d0e..cc6c018 100644
--- a/lib/dtas/watchable.rb
+++ b/lib/dtas/watchable.rb
@@ -22,7 +22,7 @@ module DTAS::Watchable
           or_call = true
         end
       end
-      if or_call && @on_readable
+      if or_call
         @on_readable.call
         :delete
       else