Codestyle: Fix govet issues (#17178)

ref #10381

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
This commit is contained in:
Mario Trangoni
2019-06-04 22:00:05 +02:00
committed by Carl Bergquist
parent 574a37e46f
commit 87760d4fde
10 changed files with 30 additions and 35 deletions
+1
View File
@@ -89,6 +89,7 @@ func GetTestDataScenarios(c *m.ReqContext) Response {
// Generates a index out of range error
func GenerateError(c *m.ReqContext) Response {
var array []string
// nolint: govet
return JSON(200, array[20])
}
-5
View File
@@ -129,11 +129,6 @@ func NewApiPluginProxy(ctx *m.ReqContext, proxyPath string, route *plugins.AppPl
req.URL.Host = targetURL.Host
req.Host = targetURL.Host
req.URL.Path = util.JoinURLFragments(targetURL.Path, proxyPath)
if err != nil {
ctx.JsonApiErr(500, "Could not interpolate plugin route url", err)
return
}
}
// reqBytes, _ := httputil.DumpRequestOut(req, true);