Simplify conditional

This commit is contained in:
Carlos Alcaide Corvo committed 2022-02-11 13:18:19 -08:00
1 parent 1cdc4a0092
commit fe3310ddd1
1 file changed
+1 -4
+1 -4
View File
@@ -51,10 +51,7 @@ export default factory.extend({
ip_addresses: returnIpAddressesArray(),
external_id: datatype.uuid(),
// Only aws plugins have dns_names
dns_names:
this.type != 'static' && this.plugin?.name === 'aws'
? returnDnsNames()
: undefined,
dns_names: this.plugin?.name === 'aws' ? returnDnsNames() : undefined,
};
},
});