remove redundant function getEnvInt

This commit is contained in:
onyx-and-iris 2025-05-06 23:52:50 +01:00
parent 0d85129d31
commit af0a72eb67

View File

@ -1,18 +0,0 @@
package main
import (
"os"
"strconv"
)
func getEnvInt(key string) (int, error) {
s := os.Getenv(key)
if s == "" {
return 0, nil
}
v, err := strconv.Atoi(s)
if err != nil {
return 0, err
}
return v, nil
}