chore(lint): fix issues
- sources/env: remove unused `envToInt` - fix `ireturn` error for `newCipherDESCBCBlock`
This commit is contained in:
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user