Remove extra quote in ROLE command with JSON output

This commit is contained in:
Chris Rice 2024-08-02 09:33:15 -07:00
parent 4a1c800b0e
commit 100c4dd837
1 changed files with 1 additions and 1 deletions

View File

@ -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" {