Fix errors introduced with golangci-lint 1.41.1

This commit is contained in:
Quentin McGaw (desktop)
2021-06-20 16:39:38 +00:00
parent 2c77b73ebc
commit 266596af68
9 changed files with 20 additions and 13 deletions

View File

@@ -69,7 +69,8 @@ func (settings *Provider) readNordvpn(r reader) (err error) {
}
func readNordVPNServerNumbers(env params.Env) (numbers []uint16, err error) {
possibilities := make([]string, 65537)
const possiblePortsCount = 65537
possibilities := make([]string, possiblePortsCount)
for i := range possibilities {
possibilities[i] = fmt.Sprintf("%d", i)
}