chore(lint): golangci-lint v1.47.2 -> v1.48.0
- Remove deprecated `ifshort` linter - Fix bad `//nolint:gomnd` comment
This commit is contained in:
@@ -65,7 +65,6 @@ linters:
|
||||
- goprintffuncname
|
||||
- gosec
|
||||
- grouper
|
||||
- ifshort
|
||||
- importas
|
||||
- ireturn
|
||||
- lll
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user