Browse code

Put back panic for go1.0.3 compatibility

Guillaume J. Charmes authored on 2013/06/05 06:26:40
Showing 2 changed files
... ...
@@ -606,6 +606,7 @@ func (container *Container) waitLxc() error {
606 606
 		}
607 607
 		time.Sleep(500 * time.Millisecond)
608 608
 	}
609
+	panic("Unreachable")
609 610
 }
610 611
 
611 612
 func (container *Container) monitor() {
... ...
@@ -794,6 +795,8 @@ func (container *Container) WaitTimeout(timeout time.Duration) error {
794 794
 	case <-done:
795 795
 		return nil
796 796
 	}
797
+
798
+	panic("Unreachable")
797 799
 }
798 800
 
799 801
 func (container *Container) EnsureMounted() error {
... ...
@@ -257,6 +257,7 @@ func proxy(listener net.Listener, proto, address string) error {
257 257
 		utils.Debugf("Connected to backend, splicing")
258 258
 		splice(src, dst)
259 259
 	}
260
+	panic("Unreachable")
260 261
 }
261 262
 
262 263
 func halfSplice(dst, src net.Conn) error {