Permalink
Browse files

Remove useless variable assignment

  • Loading branch information...
1 parent 8fa0f1d commit d0891efdc01289e899a7a0edfdeda4d7572bc366 Rémy Coutable committed Dec 16, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/guard/dsl.rb
View
3 lib/guard/dsl.rb
@@ -5,8 +5,7 @@ def self.evaluate_guardfile
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

0 comments on commit d0891ef

Please sign in to comment.