Browse Source

drop unneeded variable copy

pull/1780/head
Ethan Buchman 8 years ago
parent
commit
490a96ef66
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      types/messages.go

+ 2
- 4
types/messages.go View File

@ -94,9 +94,8 @@ func ToResponseFlush() *Response {
}
func ToResponseInfo(resInfo ResponseInfo) *Response {
resInfoCopy := resInfo
return &Response{
Value: &Response_Info{&resInfoCopy},
Value: &Response_Info{&resInfo},
}
}
@ -143,9 +142,8 @@ func ToResponseBeginBlock() *Response {
}
func ToResponseEndBlock(resEndBlock ResponseEndBlock) *Response {
resEndBlockCopy := resEndBlock
return &Response{
Value: &Response_EndBlock{&resEndBlockCopy},
Value: &Response_EndBlock{&resEndBlock},
}
}


Loading…
Cancel
Save