Skip to content

Commit 32a0839

Browse files
authored
Merge pull request #488 from lsm5/golangci-extension-gofumpt
gofumpt changes
2 parents af8a892 + d0867db commit 32a0839

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

image/docker/reference/normalize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func splitDockerDomain(name string) (domain, remainder string) {
100100
if domain == defaultDomain && !strings.ContainsRune(remainder, '/') {
101101
remainder = officialRepoName + "/" + remainder
102102
}
103-
return
103+
return domain, remainder
104104
}
105105

106106
// familiarizeName returns a shortened version of the name familiar

image/docker/wwwauthenticate.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,29 +94,29 @@ func parseValueAndParams(header string) (value string, params map[string]string)
9494
params = make(map[string]string)
9595
value, s := expectToken(header)
9696
if value == "" {
97-
return
97+
return value, params
9898
}
9999
value = strings.ToLower(value)
100100
s = "," + skipSpace(s)
101101
for strings.HasPrefix(s, ",") {
102102
var pkey string
103103
pkey, s = expectToken(skipSpace(s[1:]))
104104
if pkey == "" {
105-
return
105+
return value, params
106106
}
107107
if !strings.HasPrefix(s, "=") {
108-
return
108+
return value, params
109109
}
110110
var pvalue string
111111
pvalue, s = expectTokenOrQuoted(s[1:])
112112
if pvalue == "" {
113-
return
113+
return value, params
114114
}
115115
pkey = strings.ToLower(pkey)
116116
params[pkey] = pvalue
117117
s = skipSpace(s)
118118
}
119-
return
119+
return value, params
120120
}
121121

122122
func skipSpace(s string) (rest string) {

image/pkg/shortnames/shortnames.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func splitUserInput(named reference.Named) (isTagged bool, isDigested bool, norm
7474
// Strip off tag/digest if present.
7575
normalized = reference.TrimNamed(named)
7676

77-
return
77+
return isTagged, isDigested, normalized, tag, digest
7878
}
7979

8080
// Add records the specified name-value pair as a new short-name alias to the

0 commit comments

Comments
 (0)