Remove useless variable assignment
This commit is contained in:
parent
8fa0f1d4bc
commit
d0891efdc0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user