From 5edebfd416b5b9bb5a75297b73e40cddaff18213 Mon Sep 17 00:00:00 2001 From: Kevin Stock Date: Thu, 25 Feb 2016 07:15:49 -0800 Subject: [PATCH] Fixes capitalization of the jsonResponse function --- slack.go | 6 +++--- status.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/slack.go b/slack.go index e64ea70..f8d915a 100644 --- a/slack.go +++ b/slack.go @@ -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) @@ -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) } diff --git a/status.go b/status.go index 16f7477..6eb8f46 100644 --- a/status.go +++ b/status.go @@ -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) } }