mirror of
https://github.com/zhigang1992/firebase-tools.git
synced 2026-05-22 23:28:33 +08:00
Use _has
This commit is contained in:
@@ -41,7 +41,7 @@ Config.LEGACY_HOSTING_KEYS = ['public', 'rewrites', 'redirects', 'headers', 'ign
|
||||
|
||||
Config.prototype.importLegacyKeys = function() {
|
||||
Config.LEGACY_HOSTING_KEYS.forEach(function(key) {
|
||||
if (this._src[key]) {
|
||||
if (_.has(this._src, key)) {
|
||||
this.set('hosting.' + key, this._src[key]);
|
||||
}
|
||||
}, this);
|
||||
|
||||
Reference in New Issue
Block a user