Merge pull request #102 from bronson/patch-1

Fix undefined method `empty?' for nil:NilClass error
This commit is contained in:
Rémy Coutable 2011-07-14 13:33:39 -07:00
commit 8622ba5f94

View File

@ -9,7 +9,7 @@ module Guard
@@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