make Prettier

This commit is contained in:
AJ ONeal 2021-04-04 10:51:43 -06:00
parent 29e501d8b3
commit c914536dff
3 changed files with 24 additions and 27 deletions

View File

@ -23,7 +23,7 @@ module.exports.create = function(config) {
init: function (deps) { init: function (deps) {
request = deps.request; request = deps.request;
return new Promise(resolve => resolve()); return new Promise((resolve) => resolve());
}, },
zones: function (data) { zones: function (data) {
@ -55,9 +55,9 @@ module.exports.create = function(config) {
return api('PATCH', '/domains/' + ch.dnsZone + '/records', records).then( return api('PATCH', '/domains/' + ch.dnsZone + '/records', records).then(
function (resp) { function (resp) {
return null return null;
} }
) );
}, },
remove: function (data) { remove: function (data) {
var ch = data.challenge; var ch = data.challenge;
@ -68,7 +68,6 @@ module.exports.create = function(config) {
'/domains/' + ch.dnsZone + '/records/TXT/' + ch.dnsPrefix '/domains/' + ch.dnsZone + '/records/TXT/' + ch.dnsPrefix
) )
.then(function (resp) { .then(function (resp) {
// keep all TXT records that we don't need to remove // keep all TXT records that we don't need to remove
return resp.body.filter(function (el) { return resp.body.filter(function (el) {
return el.data !== ch.dnsAuthorization; return el.data !== ch.dnsAuthorization;
@ -96,7 +95,6 @@ module.exports.create = function(config) {
'/domains/' + ch.dnsZone + '/records/TXT', '/domains/' + ch.dnsZone + '/records/TXT',
records records
).then(function (resp) { ).then(function (resp) {
return null; return null;
}); });
}); });
@ -107,7 +105,6 @@ module.exports.create = function(config) {
'GET', 'GET',
'/domains/' + ch.dnsZone + '/records/TXT/' + ch.dnsPrefix '/domains/' + ch.dnsZone + '/records/TXT/' + ch.dnsPrefix
).then(function (resp) { ).then(function (resp) {
var entry = (resp.body || []).filter(function (x) { var entry = (resp.body || []).filter(function (x) {
return x.data === ch.dnsAuthorization; return x.data === ch.dnsAuthorization;
})[0]; })[0];