From 2dbc63f41c01297252e05f0dc5c2b33e653363be Mon Sep 17 00:00:00 2001 From: Aliaksandr Mianzhynski Date: Tue, 14 Dec 2021 15:35:25 +0300 Subject: [PATCH] Make linter happy --- .github/workflows/test.yml | 8 +++++--- iotdevice/transport/mqtt/mqtt_test.go | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e11608..a901479 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,9 @@ name: Test and Lint on: push: branches: - - actions + - master + pull_request: + branches: - master workflow_dispatch: @@ -32,5 +34,5 @@ jobs: - name: Run golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: v1.37 - args: --enable=goimports,gofumpt,whitespace,gocritic,scopelint + version: v1.43 + args: --enable=goimports,gofumpt,whitespace,exportloopref diff --git a/iotdevice/transport/mqtt/mqtt_test.go b/iotdevice/transport/mqtt/mqtt_test.go index d8738df..3b3476e 100644 --- a/iotdevice/transport/mqtt/mqtt_test.go +++ b/iotdevice/transport/mqtt/mqtt_test.go @@ -49,7 +49,7 @@ func TestParseTwinPropsTopic(t *testing.T) { } func TestEncodePropertiesHandleSpaces(t *testing.T) { - var cases = []struct { + cases := []struct { key string value string expected string