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

pull/237/head
Sean Chittenden 9 years ago
parent 613ada987d
commit e4f857a9ca
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16

@ -26,7 +26,7 @@ import (
var ( var (
Timeout = 3 * time.Second Timeout = 3 * time.Second
TimeoutErr = errors.New("Command timed out.") ErrTimeout = errors.New("Command timed out.")
) )
type Invoker interface { 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 // wait for the command to return after killing it
<-done <-done
return TimeoutErr return ErrTimeout
} }
} }

Loading…
Cancel
Save