diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml index 4dfa48d5..72201179 100644 --- a/.github/workflows/gosec.yml +++ b/.github/workflows/gosec.yml @@ -112,7 +112,7 @@ jobs: working-directory: ./pebble run: gosec ./... # ----- - - name: Run Gosec (ruedis) - working-directory: ./ruedis + - name: Run Gosec (rueidis) + working-directory: ./rueidis run: gosec ./... # ----- diff --git a/rueidis/rueidis.go b/rueidis/rueidis.go index c562e6bf..9bec4292 100644 --- a/rueidis/rueidis.go +++ b/rueidis/rueidis.go @@ -42,7 +42,6 @@ func New(config ...Config) *Storage { DisableCache: cfg.DisableCache, AlwaysPipelining: cfg.AlwaysPipelining, }) - if err != nil { panic(err) } diff --git a/rueidis/rueidis_test.go b/rueidis/rueidis_test.go index c3a20242..621642fa 100644 --- a/rueidis/rueidis_test.go +++ b/rueidis/rueidis_test.go @@ -64,9 +64,7 @@ func Test_Rueidis_Set_Expiration(t *testing.T) { } func Test_Rueidis_Get_Expired(t *testing.T) { - var ( - key = "john" - ) + key := "john" result, err := testStore.Get(key) utils.AssertEqual(t, nil, err) @@ -97,9 +95,7 @@ func Test_Rueidis_Delete(t *testing.T) { } func Test_Rueidis_Reset(t *testing.T) { - var ( - val = []byte("doe") - ) + val := []byte("doe") err := testStore.Set("john1", val, 0) utils.AssertEqual(t, nil, err)