Skip to content

Commit 37fee1a

Browse files
committed
run make fmt
1 parent 2d8fa02 commit 37fee1a

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

bitmap_commands.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ type BitCount struct {
4242
Unit string // BYTE(default) | BIT
4343
}
4444

45-
const BitCountIndexByte string = "BYTE"
46-
const BitCountIndexBit string = "BIT"
45+
const (
46+
BitCountIndexByte string = "BYTE"
47+
BitCountIndexBit string = "BIT"
48+
)
4749

4850
func (c cmdable) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd {
4951
args := make([]any, 2, 5)

bitmap_commands_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package redis_test
33
import (
44
. "github.com/bsm/ginkgo/v2"
55
. "github.com/bsm/gomega"
6+
67
"github.com/redis/go-redis/v9"
78
)
89

@@ -31,7 +32,7 @@ var _ = Describe("BitCountBite", func() {
3132
})
3233

3334
It("bit count bite", func() {
34-
var expected = []bitCountExpected{
35+
expected := []bitCountExpected{
3536
{0, 0, 0},
3637
{0, 1, 1},
3738
{0, 2, 1},
@@ -71,7 +72,7 @@ var _ = Describe("BitCountByte", func() {
7172
})
7273

7374
It("bit count byte", func() {
74-
var expected = []bitCountExpected{
75+
expected := []bitCountExpected{
7576
{0, 0, 1},
7677
{0, 1, 3},
7778
}
@@ -84,7 +85,7 @@ var _ = Describe("BitCountByte", func() {
8485
})
8586

8687
It("bit count byte with no unit specified", func() {
87-
var expected = []bitCountExpected{
88+
expected := []bitCountExpected{
8889
{0, 0, 1},
8990
{0, 1, 3},
9091
}

commands_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ var _ = Describe("Commands", func() {
301301
defer client2.Close()
302302
clientInfo = client2.ClientInfo(ctx).Val()
303303
Expect(clientInfo.LibName).To(ContainSubstring("go-redis(suffix,"))
304-
305304
})
306305

307306
It("should ConfigGet", func() {

monitor_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ package redis_test
33
import (
44
"context"
55
"strings"
6-
"time"
7-
86
"testing"
7+
"time"
98

109
. "github.com/bsm/ginkgo/v2"
1110
. "github.com/bsm/gomega"

0 commit comments

Comments
 (0)