1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix some inefassign warnings

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2019-08-05 20:05:09 -07:00 committed by Sebastiaan van Stijn
parent 5c11740abb
commit 7b0e0335bc
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ func byteSizeFromString(arg string) (int64, error) {
rest = strings.ToLower(strings.TrimSpace(rest))
var multiplier int64 = 1
var multiplier int64
switch rest {
case "":
multiplier = 1

View file

@ -637,7 +637,7 @@ func parsePortMap(portMap nat.PortMap) ([]*api.PortConfig, error) {
return nil, err
}
protocol := api.ProtocolTCP
var protocol api.PortConfig_Protocol
switch strings.ToLower(parts[1]) {
case "tcp":
protocol = api.ProtocolTCP