Skip to content

Commit da69318

Browse files
committed
Remove unnecessary newline and add return statement
1 parent fabea60 commit da69318

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

adapter/grpc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func NewGRPCServer(store store.ScanStore, coordinate *kv.Coordinate) *GRPCServer
4040
}
4141

4242
func (r GRPCServer) RawGet(ctx context.Context, req *pb.RawGetRequest) (*pb.RawGetResponse, error) {
43-
4443
if r.coordinator.IsLeader() {
4544
v, err := r.store.Get(ctx, req.Key)
4645
if err != nil {

adapter/redis.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func (r *RedisServer) get(conn redcon.Conn, cmd redcon.Command) {
128128
return
129129
}
130130
conn.WriteBulk(v)
131+
return
131132
}
132133

133134
v, err := r.tryLeaderGet(cmd.Args[1])

0 commit comments

Comments
 (0)