From d0891efdc01289e899a7a0edfdeda4d7572bc366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81my=20Coutable?= Date: Thu, 16 Dec 2010 15:08:26 +0100 Subject: [PATCH] Remove useless variable assignment --- lib/guard/dsl.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/guard/dsl.rb b/lib/guard/dsl.rb index 2ef364f..5830718 100644 --- a/lib/guard/dsl.rb +++ b/lib/guard/dsl.rb @@ -5,8 +5,7 @@ module Guard guardfile = "#{Dir.pwd}/Guardfile" if File.exists?(guardfile) begin - dsl = new - dsl.instance_eval(File.read(guardfile.to_s), guardfile.to_s, 1) + new.instance_eval(File.read(guardfile.to_s), guardfile.to_s, 1) rescue UI.error "Invalid Guardfile, original error is:\n#{$!}" exit 1