Skip to content

Commit a000300

Browse files
committed
run make fmt
1 parent e63669e commit a000300

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
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
@@ -335,7 +335,6 @@ var _ = Describe("Commands", func() {
335335
defer client2.Close()
336336
clientInfo = client2.ClientInfo(ctx).Val()
337337
Expect(clientInfo.LibName).To(ContainSubstring("go-redis(suffix,"))
338-
339338
})
340339

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

0 commit comments

Comments
 (0)