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