Skip to content

Commit 2e3eaa7

Browse files
authored
Merge pull request #749 from Kilowhisky/Fix-#748
Remove extra quote in ROLE command with JSON output
2 parents 4a1c800 + 100c4dd commit 2e3eaa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/server/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ func (s *Server) cmdROLE(msg *Message) (res resp.Value, err error) {
639639
}
640640
if msg.OutputType == JSON {
641641
var json []byte
642-
json = append(json, `{"ok":true,"role":{"`...)
642+
json = append(json, `{"ok":true,"role":{`...)
643643
json = append(json, `"role":`...)
644644
json = appendJSONString(json, role)
645645
if role == "master" {

0 commit comments

Comments
 (0)