Remove useless variable assignment

This commit is contained in:
Rémy Coutable 2010-12-16 15:08:26 +01:00
parent 8fa0f1d4bc
commit d0891efdc0

View File

@ -5,8 +5,7 @@ module Guard
guardfile = "#{Dir.pwd}/Guardfile" guardfile = "#{Dir.pwd}/Guardfile"
if File.exists?(guardfile) if File.exists?(guardfile)
begin begin
dsl = new new.instance_eval(File.read(guardfile.to_s), guardfile.to_s, 1)
dsl.instance_eval(File.read(guardfile.to_s), guardfile.to_s, 1)
rescue rescue
UI.error "Invalid Guardfile, original error is:\n#{$!}" UI.error "Invalid Guardfile, original error is:\n#{$!}"
exit 1 exit 1