Skip to content

Commit

Permalink
Merge pull request #749 from Kilowhisky/Fix-#748
Browse files Browse the repository at this point in the history
Remove extra quote in ROLE command with JSON output
  • Loading branch information
tidwall authored Aug 2, 2024
2 parents 4a1c800 + 100c4dd commit 2e3eaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 2e3eaa7

Please sign in to comment.