Skip to content

Commit d4deda6

Browse files
committed
Fix lint violations
1 parent 41ef5ff commit d4deda6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

container_restart.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
//
1313
// - always: the docker daemon will always restart the container
1414
// - on-failure: the docker daemon will restart the container on failures, at
15-
// most MaximumRetryCount times
15+
// most MaximumRetryCount times
1616
// - unless-stopped: the docker daemon will always restart the container except
17-
// when user has manually stopped the container
17+
// when user has manually stopped the container
1818
// - no: the docker daemon will not restart the container automatically
1919
type RestartPolicy struct {
2020
Name string `json:"Name,omitempty" yaml:"Name,omitempty" toml:"Name,omitempty"`

misc.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,11 @@ type ServiceConfig struct {
131131
type NetIPNet net.IPNet
132132

133133
// MarshalJSON returns the JSON representation of the IPNet.
134-
//
135134
func (ipnet *NetIPNet) MarshalJSON() ([]byte, error) {
136135
return json.Marshal((*net.IPNet)(ipnet).String())
137136
}
138137

139138
// UnmarshalJSON sets the IPNet from a byte array of JSON.
140-
//
141139
func (ipnet *NetIPNet) UnmarshalJSON(b []byte) (err error) {
142140
var ipnetStr string
143141
if err = json.Unmarshal(b, &ipnetStr); err == nil {
@@ -181,9 +179,9 @@ func (c *Client) Info() (*DockerInfo, error) {
181179
//
182180
// Some examples:
183181
//
184-
// localhost.localdomain:5000/samalba/hipache:latest -> localhost.localdomain:5000/samalba/hipache, latest
185-
// localhost.localdomain:5000/samalba/hipache -> localhost.localdomain:5000/samalba/hipache, ""
186-
// busybox:latest@sha256:4a731fb46adc5cefe3ae374a8b6020fc1b6ad667a279647766e9a3cd89f6fa92 -> busybox, latest
182+
// localhost.localdomain:5000/samalba/hipache:latest -> localhost.localdomain:5000/samalba/hipache, latest
183+
// localhost.localdomain:5000/samalba/hipache -> localhost.localdomain:5000/samalba/hipache, ""
184+
// busybox:latest@sha256:4a731fb46adc5cefe3ae374a8b6020fc1b6ad667a279647766e9a3cd89f6fa92 -> busybox, latest
187185
func ParseRepositoryTag(repoTag string) (repository string, tag string) {
188186
parts := strings.SplitN(repoTag, "@", 2)
189187
repoTag = parts[0]

0 commit comments

Comments
 (0)