Skip to content

Commit

Permalink
Merge c8f8790 into dc22619
Browse files Browse the repository at this point in the history
  • Loading branch information
fperot74 committed May 9, 2019
2 parents dc22619 + c8f8790 commit 6063923
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion internal/keycloakb/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func EventsErrorHandler(_ context.Context, err error, w http.ResponseWriter) {
w.WriteHeader(http.StatusTooManyRequests)
} else {
w.WriteHeader(http.StatusInternalServerError)
w.Write([]byte(err.Error()))
}
}
}
1 change: 0 additions & 1 deletion internal/keycloakb/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ func TestEventsErrorHandler(t *testing.T) {
{
message := "500"
mockRespWriter.EXPECT().WriteHeader(http.StatusInternalServerError).Times(1)
mockRespWriter.EXPECT().Write([]byte(message)).Times(1)
EventsErrorHandler(context.Background(), errors.New(message), mockRespWriter)
}
}

0 comments on commit 6063923

Please sign in to comment.