Merge pull request #749 from Kilowhisky/Fix-#748

Remove extra quote in ROLE command with JSON output
This commit is contained in:
Josh Baker 2024-08-02 09:35:34 -07:00 committed by GitHub
commit 2e3eaa74bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 { if msg.OutputType == JSON {
var json []byte var json []byte
json = append(json, `{"ok":true,"role":{"`...) json = append(json, `{"ok":true,"role":{`...)
json = append(json, `"role":`...) json = append(json, `"role":`...)
json = appendJSONString(json, role) json = appendJSONString(json, role)
if role == "master" { if role == "master" {