chore(lint): golangci-lint v1.47.2 -> v1.48.0

- Remove deprecated `ifshort` linter
- Fix bad `//nolint:gomnd` comment
This commit is contained in:
Quentin McGaw
2022-08-12 22:07:12 +00:00
parent a6f00f2fb2
commit ebae167815
3 changed files with 2 additions and 3 deletions

View File

@@ -65,7 +65,6 @@ linters:
- goprintffuncname
- gosec
- grouper
- ifshort
- importas
- ireturn
- lll

View File

@@ -2,7 +2,7 @@ ARG ALPINE_VERSION=3.16
ARG GO_ALPINE_VERSION=3.16
ARG GO_VERSION=1.17
ARG XCPUTRANSLATE_VERSION=v0.6.0
ARG GOLANGCI_LINT_VERSION=v1.47.2
ARG GOLANGCI_LINT_VERSION=v1.48.0
ARG MOCKGEN_VERSION=v1.6.0
ARG BUILDPLATFORM=linux/amd64

View File

@@ -30,7 +30,7 @@ func (u *Updater) FetchServers(ctx context.Context, minServers int) (
x5090Name := group.OvpnX509
wgPubKey := group.WgPubKey
for _, node := range group.Nodes {
ips := make([]net.IP, 0, 2) // nolint:gomnd
ips := make([]net.IP, 0, 2) //nolint:gomnd
if node.IP != nil {
ips = append(ips, node.IP)
}