1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

Fix a linter issue: s/TimeoutErr/ErrTimeout/g

This commit is contained in:
Sean Chittenden 2016-08-11 00:49:29 -07:00
parent 613ada987d
commit e4f857a9ca
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16

View File

@ -26,7 +26,7 @@ import (
var (
Timeout = 3 * time.Second
TimeoutErr = errors.New("Command timed out.")
ErrTimeout = errors.New("Command timed out.")
)
type Invoker interface {
@ -338,6 +338,6 @@ func WaitTimeout(c *exec.Cmd, timeout time.Duration) error {
}
// wait for the command to return after killing it
<-done
return TimeoutErr
return ErrTimeout
}
}