missing error check in env reset
This commit is contained in:
+3
-1
@@ -328,7 +328,9 @@ func postFlushFn(sites []string, port int) func() {
|
||||
|
||||
func resetEnv(envs ...string) {
|
||||
for _, env := range envs {
|
||||
os.Unsetenv(env)
|
||||
if err := os.Unsetenv(env); err != nil {
|
||||
log.Printf("[WARN] can't unset env %s, %s", env, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user