From e013e9b9db9d470a85a7492fd89dc8dc6d9c0c2f Mon Sep 17 00:00:00 2001 From: Roman Nikitin Date: Tue, 22 Sep 2020 12:37:18 +0300 Subject: [PATCH] Autocheck fixed --- gotty-client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gotty-client.go b/gotty-client.go index 561bdb1..fb69dbf 100644 --- a/gotty-client.go +++ b/gotty-client.go @@ -237,14 +237,14 @@ func (c *Client) Connect() error { Arguments: "?" + query.Encode(), AuthToken: authToken, } - queryJson, err := json.Marshal(querySingle) + queryJSON, err := json.Marshal(querySingle) if err != nil { logrus.Errorf("Failed to parse init message %v", err) return err } // Send Json logrus.Debugf("Sending arguments and auth-token") - err = c.write(queryJson) + err = c.write(queryJSON) if err != nil { return err }