mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CHORE: Linting (#1704)
* Remove deprecated io/ioutil * fixup! * staticcheck and linting * revert models/provider.go * Fix imports to new style * linting
This commit is contained in:
@ -3,6 +3,7 @@ package rwth
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||
)
|
||||
|
||||
@ -38,6 +39,7 @@ func init() {
|
||||
providers.RegisterDomainServiceProviderType("RWTH", fns, features)
|
||||
}
|
||||
|
||||
// New allocates a DNS service provider.
|
||||
func New(settings map[string]string, _ json.RawMessage) (providers.DNSServiceProvider, error) {
|
||||
if settings["api_token"] == "" {
|
||||
return nil, fmt.Errorf("missing RWTH api_token")
|
||||
|
Reference in New Issue
Block a user