From 5c62e8987f4df590d45ee84953f114f5bba322c4 Mon Sep 17 00:00:00 2001 From: Hanzei <16541325+hanzei@users.noreply.github.com> Date: Thu, 24 Jan 2019 15:24:32 +0100 Subject: [PATCH] Fix missing return (#19) --- server/plugin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/plugin.go b/server/plugin.go index 3c75e543a..9b4fc867e 100644 --- a/server/plugin.go +++ b/server/plugin.go @@ -91,6 +91,7 @@ func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Req errorMessage := "Failed to create post" p.postHTTPDebugMessage(errorMessage) http.Error(w, errorMessage, http.StatusInternalServerError) + return } user, appErr := p.API.GetUserByUsername(config.UserName)