diff --git a/container.go b/container.go index adb160216..872bbb000 100644 --- a/container.go +++ b/container.go @@ -626,7 +626,7 @@ func (container *Container) WaitTimeout(timeout time.Duration) error { case <-done: return nil } - return nil + panic("unreachable") } func (container *Container) EnsureMounted() error { diff --git a/network.go b/network.go index c050609d1..e92a4e540 100644 --- a/network.go +++ b/network.go @@ -184,7 +184,7 @@ func (alloc *PortAllocator) Release(port int) error { default: return errors.New("Too many ports have been released") } - return nil + panic("unreachable") } func newPortAllocator(start, end int) (*PortAllocator, error) { diff --git a/utils.go b/utils.go index e295239f7..5ee84239b 100644 --- a/utils.go +++ b/utils.go @@ -202,7 +202,7 @@ func (r *bufReader) Read(p []byte) (n int, err error) { } r.wait.Wait() } - return + panic("unreachable") } func (r *bufReader) Close() error {