Skip to content

Commit 54c2d39

Browse files
committed
fix: refactor codebase for improved performance and maintainability
- Fix variable assignment order in `TestGetRedisStore` function Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 830a1b9 commit 54c2d39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redis/redis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func TestRedis_SessionMany(t *testing.T) {
4444
func TestGetRedisStore(t *testing.T) {
4545
t.Run("unmatched type", func(t *testing.T) {
4646
type store struct{ Store }
47-
err, rediStore := GetRedisStore(store{})
47+
rediStore, err := GetRedisStore(store{})
4848
if err == nil || rediStore != nil {
4949
t.Fail()
5050
}

0 commit comments

Comments
 (0)