Fix path to rueidis dir. Format code

This commit is contained in:
Juan Calderon-Perez
2023-08-15 01:03:23 -04:00
parent ca369ed8d1
commit c739918a1d
3 changed files with 4 additions and 9 deletions

View File

@@ -112,7 +112,7 @@ jobs:
working-directory: ./pebble working-directory: ./pebble
run: gosec ./... run: gosec ./...
# ----- # -----
- name: Run Gosec (ruedis) - name: Run Gosec (rueidis)
working-directory: ./ruedis working-directory: ./rueidis
run: gosec ./... run: gosec ./...
# ----- # -----

View File

@@ -42,7 +42,6 @@ func New(config ...Config) *Storage {
DisableCache: cfg.DisableCache, DisableCache: cfg.DisableCache,
AlwaysPipelining: cfg.AlwaysPipelining, AlwaysPipelining: cfg.AlwaysPipelining,
}) })
if err != nil { if err != nil {
panic(err) panic(err)
} }

View File

@@ -64,9 +64,7 @@ func Test_Rueidis_Set_Expiration(t *testing.T) {
} }
func Test_Rueidis_Get_Expired(t *testing.T) { func Test_Rueidis_Get_Expired(t *testing.T) {
var ( key := "john"
key = "john"
)
result, err := testStore.Get(key) result, err := testStore.Get(key)
utils.AssertEqual(t, nil, err) utils.AssertEqual(t, nil, err)
@@ -97,9 +95,7 @@ func Test_Rueidis_Delete(t *testing.T) {
} }
func Test_Rueidis_Reset(t *testing.T) { func Test_Rueidis_Reset(t *testing.T) {
var ( val := []byte("doe")
val = []byte("doe")
)
err := testStore.Set("john1", val, 0) err := testStore.Set("john1", val, 0)
utils.AssertEqual(t, nil, err) utils.AssertEqual(t, nil, err)