mirror of https://github.com/tidwall/tile38.git
Remove extra quote in ROLE command with JSON output
This commit is contained in:
parent
4a1c800b0e
commit
100c4dd837
|
@ -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" {
|
||||||
|
|
Loading…
Reference in New Issue