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:
parent
5c11740abb
commit
7b0e0335bc
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue