Merge pull request #102 from bronson/patch-1
Fix undefined method `empty?' for nil:NilClass error
This commit is contained in:
commit
8622ba5f94
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user