-
Notifications
You must be signed in to change notification settings - Fork 2
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
app-mapper: govet, golint, errcheck fixes #83
Conversation
@2opremio Friendly ping :) |
@@ -142,7 +142,9 @@ func TestBadServerResponse(t *testing.T) { | |||
|
|||
shFunc := func(w http.ResponseWriter, r *http.Request, orgName string) { | |||
w.WriteHeader(http.StatusOK) | |||
w.Write(responseBody) | |||
if _, err := w.Write(responseBody); err != nil { | |||
t.Error(err) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
49b3b1b
to
bf14681
Compare
@@ -62,7 +63,9 @@ func (p *dockerProvisioner) runApp(appID string) (hostname string, err error) { | |||
} | |||
defer func() { | |||
if err != nil { | |||
p.destroyApp(appID) | |||
if err := p.destroyApp(appID); err != nil { | |||
logrus.Warnf("destroyApp: %v", err) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Thanks for improving the error handling @peterbourgon ! |
bf14681
to
6e94cf1
Compare
@2opremio all good? FYI, here's what happens when I press the build shortcut in my editor:
edit: I realize that can be condensed to
|
Yep, LGTM. I didn't know about #!/bin/bash
set -e
fgt golint app-mapper
go tool vet app-mapper (I always run tests manually). I will incorporate |
app-mapper: govet, golint, errcheck fixes
@2opremio