From 18318887920773d43b72e9fb6490d3e74674bcf0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 Jun 2011 03:30:39 +0000 Subject: fix Ruby warnings Found in the check-warnings target in pkg.mk --- lib/raindrops/watcher.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/raindrops/watcher.rb') diff --git a/lib/raindrops/watcher.rb b/lib/raindrops/watcher.rb index 6ecd3ed..6d965a5 100644 --- a/lib/raindrops/watcher.rb +++ b/lib/raindrops/watcher.rb @@ -228,6 +228,7 @@ class Raindrops::Watcher end def get(env) + retried = false case env["PATH_INFO"] when "/" index @@ -247,7 +248,7 @@ class Raindrops::Watcher not_found end rescue Errno::EDOM - raise if defined?(retried) + raise if retried retried = true wait_snapshot retry -- cgit v1.2.3-24-ge0c7