mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix review comments
Signed-off-by: Ke Li <kel@splunk.com>
This commit is contained in:
parent
23ac56fdd0
commit
c80348596b
2 changed files with 3 additions and 4 deletions
|
@ -44,7 +44,7 @@ var (
|
|||
|
||||
func runContainerCreate(c *cli.Context) {
|
||||
if len(c.Args()) == 0 {
|
||||
fmt.Print("Please provide container id argument\n")
|
||||
fmt.Println("Please provide container id argument")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ func runContainerRm(c *cli.Context) {
|
|||
var sbList []*client.SandboxResource
|
||||
|
||||
if len(c.Args()) == 0 {
|
||||
fmt.Print("Please provide container id argument\n")
|
||||
fmt.Println("Please provide container id argument")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
@ -32,6 +31,6 @@ func NewProxy(frontendAddr, backendAddr net.Addr) (Proxy, error) {
|
|||
case *net.TCPAddr:
|
||||
return NewTCPProxy(frontendAddr.(*net.TCPAddr), backendAddr.(*net.TCPAddr))
|
||||
default:
|
||||
panic(errors.New("Unsupported protocol"))
|
||||
panic("Unsupported protocol")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue