Skip to content

Commit

Permalink
Fixes capitalization of the jsonResponse function
Browse files Browse the repository at this point in the history
  • Loading branch information
tantalic committed Feb 25, 2016
1 parent f9c1d1f commit 5edebfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func slackInviteRequestHandler(c *cli.Context) handleFunc {
var invitation invitationRequest
err := decoder.Decode(&invitation)
if err != nil {
JsonResponse(w, invitationResponse{
jsonResponse(w, invitationResponse{
Message: "There was an error processing your invitation. Please try again later.",
ErrorCode: 1,
}, http.StatusInternalServerError)
Expand All @@ -38,14 +38,14 @@ func slackInviteRequestHandler(c *cli.Context) handleFunc {

err = inviteToSlack(c.String("slack-token"), c.String("slack-team"), "", "", invitation.Email)
if err != nil {
JsonResponse(w, invitationResponse{
jsonResponse(w, invitationResponse{
Message: "There was an error processing your invitation. Please try again later.",
ErrorCode: 2,
}, http.StatusInternalServerError)
return
}

JsonResponse(w, invitationResponse{
jsonResponse(w, invitationResponse{
Message: "Your invitation has been sent. Please check your email.",
}, http.StatusOK)
}
Expand Down
2 changes: 1 addition & 1 deletion status.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ func statusHandler(c *cli.Context) handleFunc {
response := statusResponse{
Version: c.App.Version,
}
JsonResponse(w, response, http.StatusOK)
jsonResponse(w, response, http.StatusOK)
}
}

0 comments on commit 5edebfd

Please sign in to comment.