From a2754f15fc2bc2eede94e2e41712f9f0585f2426 Mon Sep 17 00:00:00 2001 From: Duco van Amstel Date: Sat, 8 Dec 2018 16:04:10 +0000 Subject: Enable errcheck linter (#646) --- matterclient/helpers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'matterclient/helpers.go') diff --git a/matterclient/helpers.go b/matterclient/helpers.go index 05497311..625fffaa 100644 --- a/matterclient/helpers.go +++ b/matterclient/helpers.go @@ -263,8 +263,7 @@ func (m *MMClient) sendWSRequest(action string, data map[string]interface{}) err req.Data = data m.WsSequence++ m.log.Debugf("sendWsRequest %#v", req) - m.WsClient.WriteJSON(req) - return nil + return m.WsClient.WriteJSON(req) } func supportedVersion(version string) bool { -- cgit v1.2.3