Skip to content

Commit

Permalink
Remove extra quote in ROLE command with JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilowhisky committed Aug 2, 2024
1 parent 4a1c800 commit 100c4dd
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 100c4dd

Please sign in to comment.