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:
parent
613ada987d
commit
e4f857a9ca
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user