-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Path check into switch case #284
Conversation
Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
if p, err := securejoin.SecureJoin(tmp, auto.Spec.Update.Path); err != nil { | ||
return failWithError(err) | ||
} else { | ||
manifestsPath = p | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: else
is redundant after a return
.
if p, err := securejoin.SecureJoin(tmp, auto.Spec.Update.Path); err != nil { | |
return failWithError(err) | |
} else { | |
manifestsPath = p | |
} | |
p, err := securejoin.SecureJoin(tmp, auto.Spec.Update.Path); | |
if err != nil { | |
return failWithError(err) | |
} | |
manifestsPath = p |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pjbgf 👍
Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @Nalum 🏅
Fix: #245