From 90e9e051de8ac9c4771927c305f1459168f4de30 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Thu, 9 Oct 2014 22:47:20 -0500 Subject: [PATCH] Remove unused code --- main.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/main.go b/main.go index 0b3070b..9c99e29 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,6 @@ package main import ( - "encoding/json" "errors" "fmt" "github.com/gin-gonic/gin" @@ -187,14 +186,7 @@ func API_HandleQuery(query string, c *gin.Context) { return } - buff, err := json.Marshal(result) - - if err != nil { - c.JSON(400, NewError(err)) - return - } - - c.String(200, string(buff)) + c.JSON(200, result) } func initClient() {