2
0

Back out of some over optimization

This commit is contained in:
Jack Christensen
2019-01-02 18:16:08 -06:00
parent 7bd9b776cd
commit a24d764440
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ import (
)
type CommandComplete struct {
CommandTag []byte
CommandTag string
}
func (*CommandComplete) Backend() {}
@@ -19,7 +19,7 @@ func (dst *CommandComplete) Decode(src []byte) error {
return &invalidMessageFormatErr{messageType: "CommandComplete"}
}
dst.CommandTag = src[:idx]
dst.CommandTag = string(src[:idx])
return nil
}
@@ -43,6 +43,6 @@ func (src *CommandComplete) MarshalJSON() ([]byte, error) {
CommandTag string
}{
Type: "CommandComplete",
CommandTag: string(src.CommandTag),
CommandTag: src.CommandTag,
})
}