From 100c4dd837e6c8848a69443bf2a8246adeeec6b0 Mon Sep 17 00:00:00 2001 From: Chris Rice Date: Fri, 2 Aug 2024 09:33:15 -0700 Subject: [PATCH] Remove extra quote in ROLE command with JSON output --- internal/server/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/stats.go b/internal/server/stats.go index dcba16d5..0da0791d 100644 --- a/internal/server/stats.go +++ b/internal/server/stats.go @@ -639,7 +639,7 @@ func (s *Server) cmdROLE(msg *Message) (res resp.Value, err error) { } if msg.OutputType == JSON { var json []byte - json = append(json, `{"ok":true,"role":{"`...) + json = append(json, `{"ok":true,"role":{`...) json = append(json, `"role":`...) json = appendJSONString(json, role) if role == "master" {