opts: fix formatting of comments

Comments should have a leading space unless the comment is
for special purposes (go:generate, nolint:)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-01-16 12:48:09 +01:00
parent e7f720b0a6
commit 1d6445dc99
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ func ConvertPortToPortConfig(
for i := startHostPort; i <= endHostPort; i++ { for i := startHostPort; i <= endHostPort; i++ {
ports = append(ports, swarm.PortConfig{ ports = append(ports, swarm.PortConfig{
//TODO Name: ? // TODO Name: ?
Protocol: swarm.PortConfigProtocol(strings.ToLower(port.Proto())), Protocol: swarm.PortConfigProtocol(strings.ToLower(port.Proto())),
TargetPort: uint32(port.Int()), TargetPort: uint32(port.Int()),
PublishedPort: uint32(i), PublishedPort: uint32(i),