From ef6dc55d9c40aaac9d1fbe5438dbaedc2ddad5e0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 23 Jan 2015 08:48:34 +0000 Subject: watchable: simplify check @on_readable is always set, so there's no point in checking it again when we need to call it. --- lib/dtas/watchable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7