Permalink
Browse files

Merge pull request #102 from bronson/patch-1

Fix undefined method `empty?' for nil:NilClass error
  • Loading branch information...
2 parents 18b741e + 8d27fff commit 8622ba5f94ba84f39e1ef5b678063b4f97f4218c Rémy Coutable committed Jul 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/guard/dsl.rb
View
@@ -9,7 +9,7 @@ def evaluate_guardfile(options = {})
@@options = options.dup
instance_eval_guardfile(fetch_guardfile_contents)
- UI.error "No guards found in Guardfile, please add at least one." if ::Guard.guards.empty?
+ UI.error "No guards found in Guardfile, please add at least one." if ::Guard.guards.nil? || ::Guard.guards.empty?
end
def revaluate_guardfile

0 comments on commit 8622ba5

Please sign in to comment.