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