fix golint issues in core/proc (#502)

This commit is contained in:
Kevin Wan
2021-02-22 10:07:39 +08:00
committed by GitHub
parent 221f923fae
commit d84e3d4b53
4 changed files with 10 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ var (
envLock sync.RWMutex
)
// Env returns the value of the given environment variable.
func Env(name string) string {
envLock.RLock()
val, ok := envs[name]
@@ -28,6 +29,7 @@ func Env(name string) string {
return val
}
// EnvInt returns an int value of the given environment variable.
func EnvInt(name string) (int, bool) {
val := Env(name)
if len(val) == 0 {