From 935c98225ab5ec46a6a3970430f4bf081a42522c Mon Sep 17 00:00:00 2001 From: Timothy Date: Sat, 21 Oct 2023 23:20:26 +0800 Subject: [PATCH] fix lint errors --- internal/provider/scaleway/scaleway_handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/provider/scaleway/scaleway_handler.go b/internal/provider/scaleway/scaleway_handler.go index 801c5384..dbe0c597 100644 --- a/internal/provider/scaleway/scaleway_handler.go +++ b/internal/provider/scaleway/scaleway_handler.go @@ -73,9 +73,8 @@ func (provider *DNSProvider) getRecordType() (string, error) { return utils.IPTypeA, nil } else if strings.ToUpper(provider.configuration.IPType) == utils.IPV6 { return utils.IPTypeAAAA, nil - } else { - return "", errors.New("must specify \"ip_type\" in config for Scaleway") } + return "", errors.New("must specify \"ip_type\" in config for Scaleway") } // updateIP update subdomain with current IP.