-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Minor cleanup #11407
Minor cleanup #11407
Conversation
xiangpengzhao
commented
Oct 18, 2016
- return nil instead of err when the value of err is nil.
- fix wrong type.
LGTM but travis is choking on "err" being redefined. |
The travis log shows:
One of the related code blocks is: abs, err := filepath.Abs(home)
if err != nil {
return nil, fmt.Errorf("can't make %q absolute: %v", home, err)
}
if stat, err := os.Stat(abs); err != nil || !stat.IsDir() {
return nil, fmt.Errorf("GIT_HOME must be an existing directory: %v", err)
} But it seems that we shouldn't modify the code. Then how to solve the travis flake? Should the script @sosiouxme Thanks! |
LGTM [test] |
Travis still failed due to the same error as is mentioned in my above comment. How can we solve this? @sosiouxme @knobunc Thanks! |
Flake #11240 (perhaps?) re-[test] |
Evaluated for origin test up to c89db5c |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10988/) (Base Commit: 6932bcc) |