From eb3556e8c9b107524b406a71ee6e01a5a37cdf65 Mon Sep 17 00:00:00 2001 From: shanedabes Date: Thu, 16 Jan 2020 02:09:09 +0000 Subject: [PATCH] rename json variable --- plugins/trakt/trakt.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/trakt/trakt.go b/plugins/trakt/trakt.go index 4a85ba0..112a69e 100644 --- a/plugins/trakt/trakt.go +++ b/plugins/trakt/trakt.go @@ -70,19 +70,19 @@ func trakt(command *bot.Cmd) (msg string, err error) { args := url.QueryEscape(command.RawArgs) url := fmt.Sprintf(trakt_api_url, args) - data := &traktJson{} + j := &traktJson{} headers := map[string]string{ "Content-Type": "application/json", "trakt-api-version": "2", "trakt-api-key": api_key, } - err = web.GetJSONWithHeaders(url, headers, data) + err = web.GetJSONWithHeaders(url, headers, j) if err != nil { return "", err } - out := fmt.Sprintf("%s last watched: %s", args, data.Latest()) + out := fmt.Sprintf("%s last watched: %s", args, j.Latest()) return out, nil }