diff --git a/lib/alias.js b/lib/alias.js index 66f72fb..b6669d3 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -197,7 +197,7 @@ export default class Alias extends Now { this._agent._initAgent() const newAlias = await this.createAlias(depl, alias) - if (!newAlias || !newAlias.created) { + if (!newAlias) { throw new Error(`Unexpected error occurred while setting up alias: ${JSON.stringify(newAlias)}`) } const {created, uid} = newAlias