1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

gofmt cleanups (#1217)

* Create codeql-config.yml

* Update codeql-analysis.yml

Add config to exclude certain files

* Run gofmt on a few files as reported by goreportcard.com
This commit is contained in:
Jauder Ho
2021-07-21 13:10:53 -07:00
committed by GitHub
parent 81d3281185
commit a6b9609cd5
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ func generateFeatureMatrix() error {
{"R53_ALIAS", "Provider supports Route 53 limited ALIAS"},
{"AZURE_ALIAS", "Provider supports Azure DNS limited ALIAS"},
{"DS", "Provider supports adding DS records"},
{ "AKAMAICDN", "Provider supports adding AKAMAICDN records"},
{"AKAMAICDN", "Provider supports adding AKAMAICDN records"},
{"dual host", "This provider is recommended for use in 'dual hosting' scenarios. Usually this means the provider allows full control over the apex NS records"},
{"create-domains", "This means the provider can automatically create domains that do not currently exist on your account. The 'dnscontrol create-domains' command will initialize any missing domains"},

View File

@ -18,7 +18,7 @@ func newProvider(apiKey string, secretKey string, sandbox bool, debug bool) *dns
}
fmt.Printf("Creating DNSMADEEASY provider for %q\n", baseURL)
return &dnsMadeEasyProvider{
restAPI: &dnsMadeEasyRestAPI{
apiKey: apiKey,

View File

@ -189,7 +189,7 @@ func fromRecordConfig(rc *models.RecordConfig) *recordRequestData {
func systemNameServerToRecordConfig(domain string, nameServer string) *models.RecordConfig {
// DNS Made Easy does not allow the system name servers to be edited, and said records appear to always have a fixed TTL of 86400.
const fixedNameServerRecordTTL = 86400;
const fixedNameServerRecordTTL = 86400
target := nameServer + "."
return toRecordConfig(domain, &recordResponseDataEntry{Type: "NS", Value: target, TTL: fixedNameServerRecordTTL})