Skip to content

Commit ca863eb

Browse files
committed
Fix some issues spotted by xo.
1 parent 1c90c71 commit ca863eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

blocks/domainHostedZoneId.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ module.exports.resolve = ({variableUtils, slsHelper}) => {
1313
const {HostedZones} = await slsHelper.sendAwsRequest('Route53', 'listHostedZonesByName', {DNSName: `${accountDomain}.`});
1414

1515
const zoneIds = HostedZones
16-
.filter(e => e.Name === `${accountDomain}.` && e.Config.PrivateZone === false)
17-
.map(e => e.Id)
18-
.map(e => e.split('/')[2]);
16+
.filter(zone => zone.Name === `${accountDomain}.` && zone.Config.PrivateZone === false)
17+
.map(zone => zone.Id)
18+
.map(zoneId => zoneId.split('/')[2]);
1919

2020
if (zoneIds.length === 1) {
2121
resolve(zoneIds[0]);
2222
} else {
23-
reject(`Expected exact one match of public route53 hosted zone for '${accountDomain}' domain. Found '${zoneIds.length}' (${zoneIds})."`)
23+
reject(`Expected exact one match of public route53 hosted zone for '${accountDomain}' domain. Found '${zoneIds.length}' (${zoneIds})."`);
2424
}
2525
} catch (error) {
2626
reject(error);

0 commit comments

Comments
 (0)