Use an empty object if metadata is ~null

This commit is contained in:
Machiste Quintana
2015-06-08 21:33:07 -04:00
parent 07da68c95e
commit f9c612d1c8

View File

@@ -44,6 +44,7 @@ class Package
catch error
throw error unless ignoreErrors
metadata ?= {}
metadata.name ?= packageName
if includeDeprecatedAPIs and metadata.stylesheetMain?