Skip to content

Commit 6205f7b

Browse files
committed
PRODENG-3148 linting update
- small linting fixes out of golang lint Signed-off-by: James Nesbitt <[email protected]>
1 parent 7230edc commit 6205f7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/docker/envauth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ func DiscoverEnvLogin(prefixes []string) (user, pass string, err error) {
2222
if pass == "" {
2323
err = fmt.Errorf("%w; %s username env variable did not have matching password variable %s", ErrMissingPassword, userEnv, passEnv)
2424
}
25-
return
25+
return user, pass, err
2626
}
2727
}
2828
// if there were no matching vars, then we are not supposed to do a login
2929
err = ErrNoEnvPasswordsFound
30-
return
30+
return user, pass, err
3131
}

pkg/product/common/api/mcr_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func processVersionChannelMatch(config *MCRConfig) error {
141141
func processVersionIsAVersion(config *MCRConfig) (ver *version.Version, err error) {
142142
if config.Version == "" {
143143
err = ErrInvalidVersion
144-
return
144+
return ver, err
145145
}
146146

147147
defer func() {
@@ -152,5 +152,5 @@ func processVersionIsAVersion(config *MCRConfig) (ver *version.Version, err erro
152152
}()
153153

154154
ver, err = version.NewVersion(config.Version)
155-
return
155+
return ver, err //nolint:wrapcheck
156156
}

0 commit comments

Comments
 (0)