Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f373dfc

Browse files
committedJul 20, 2024·
fix formatting issues
1 parent 42e1356 commit f373dfc

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
 

‎core/eval.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import (
44
"bytes"
55
"errors"
66
"fmt"
7+
"github.com/dicedb/dice/config"
78
"log"
89
"strconv"
10+
"strings"
911
"syscall"
1012
"time"
11-
"strings"
12-
"github.com/dicedb/dice/config"
1313
)
1414

1515
var RESP_NIL []byte = []byte("$-1\r\n")
@@ -29,7 +29,7 @@ const (
2929
TTL = "TTL"
3030
DEL = "DEL"
3131
EXPIRE = "EXPIRE"
32-
HELLO = "HELLO"
32+
HELLO = "HELLO"
3333
BGREWRITEAOF = "BGREWRITEAOF"
3434
INCR = "INCR"
3535
INFO = "INFO"
@@ -923,10 +923,10 @@ func evalCOMMAND(args []string) []byte {
923923
}
924924
subcommand := strings.ToUpper(args[0])
925925
switch subcommand {
926-
case "COUNT":
927-
return evalCOMMANDCOUNT()
928-
default:
929-
return Encode(fmt.Errorf("ERR unknown subcommand '%s'. Try COMMAND HELP", subcommand), false)
926+
case "COUNT":
927+
return evalCOMMANDCOUNT()
928+
default:
929+
return Encode(fmt.Errorf("ERR unknown subcommand '%s'. Try COMMAND HELP", subcommand), false)
930930
}
931931
}
932932

‎tests/command_count_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package tests
22

33
import (
44
"fmt"
5+
"gotest.tools/v3/assert"
56
"net"
67
"testing"
7-
"gotest.tools/v3/assert"
88
)
99

1010
func TestCommandCount(t *testing.T) {
@@ -33,4 +33,4 @@ func BenchmarkCountCommand(b *testing.B) {
3333
b.Fail()
3434
}
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)
Please sign in to comment.