diff --git a/.golangci.yml b/.golangci.yml index 04704554..a3bf8465 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -29,6 +29,10 @@ issues: - text: "returns interface \\(github\\.com\\/vishvananda\\/netlink\\.Link\\)" linters: - ireturn + - path: "internal\\/openvpn\\/pkcs8\\/descbc\\.go" + text: "newCipherDESCBCBlock returns interface \\(github\\.com\\/youmark\\/pkcs8\\.Cipher\\)" + linters: + - ireturn linters: enable: diff --git a/internal/configuration/sources/env/helpers.go b/internal/configuration/sources/env/helpers.go index 4c040429..006db996 100644 --- a/internal/configuration/sources/env/helpers.go +++ b/internal/configuration/sources/env/helpers.go @@ -29,14 +29,6 @@ func envToCSV(envKey string) (values []string) { return lowerAndSplit(csv) } -func envToInt(envKey string) (n int, err error) { - s := getCleanedEnv(envKey) - if s == "" { - return 0, nil - } - return strconv.Atoi(s) -} - func envToFloat64(envKey string) (f float64, err error) { s := getCleanedEnv(envKey) if s == "" { diff --git a/internal/openvpn/pkcs8/descbc.go b/internal/openvpn/pkcs8/descbc.go index e5f91444..104f6ad4 100644 --- a/internal/openvpn/pkcs8/descbc.go +++ b/internal/openvpn/pkcs8/descbc.go @@ -14,7 +14,7 @@ func init() { //nolint:gochecknoinits pkcs8lib.RegisterCipher(oidDESCBC, newCipherDESCBCBlock) } -func newCipherDESCBCBlock() pkcs8lib.Cipher { //nolint:ireturn +func newCipherDESCBCBlock() pkcs8lib.Cipher { return cipherDESCBC{} }