made comma style more consistently broken

This commit is contained in:
tigerbot 2017-09-15 16:07:25 -06:00
parent fcb2de516f
commit 68d6322b42
1 changed files with 11 additions and 11 deletions

View File

@ -52,17 +52,17 @@ module.exports.create = function (deps, conf) {
}).map(function (record) {
var split = record.zone.split('.');
return {
tld: split.slice(1).join('.'),
sld: split[0],
sub: record.host.slice(0, -(record.zone.length + 1))
tld: split.slice(1).join('.')
, sld: split[0]
, sub: record.host.slice(0, -(record.zone.length + 1))
};
});
});
}).then(function (domains) {
var common = {
api: 'devices.detach',
session: session,
device: conf.device.hostname
api: 'devices.detach'
, session: session
, device: conf.device.hostname
};
return PromiseA.all(domains.map(function (record) {
@ -72,11 +72,11 @@ module.exports.create = function (deps, conf) {
});
}).then(function (domains) {
var common = {
api: 'devices.attach',
session: session,
device: conf.device.hostname,
ip: addr,
ttl: 300
api: 'devices.attach'
, session: session
, device: conf.device.hostname
, ip: addr
, ttl: 300
};
return PromiseA.all(domains.map(function (record) {