chore(lint): fix issues

- sources/env: remove unused `envToInt`
- fix `ireturn` error for `newCipherDESCBCBlock`
This commit is contained in:
Quentin McGaw
2023-04-22 08:13:09 +00:00
parent 9d4105ee59
commit 1693c59e0d
3 changed files with 5 additions and 9 deletions

View File

@@ -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 == "" {