From 490a96ef6697aa5ef3d170a8a88c0e0bd724ff2b Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Thu, 12 Jan 2017 15:18:38 -0500 Subject: [PATCH] drop unneeded variable copy --- types/messages.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/types/messages.go b/types/messages.go index 428b05dc..2d256d8c 100644 --- a/types/messages.go +++ b/types/messages.go @@ -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}, } }