From: jfarrell Date: Sat, 22 Feb 2014 00:37:13 +0000 (-0500) Subject: THRIFT-2372:thrift/json_protocol.go:160: function ends without a return statement X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=3fa14a3990e973f0354059191bec34dcc8184af8;p=common%2Fthrift.git THRIFT-2372:thrift/json_protocol.go:160: function ends without a return statement Client: go Patch: jfarrell Removes else block from function and just returns. --- diff --git a/lib/go/thrift/json_protocol.go b/lib/go/thrift/json_protocol.go index 7a5e16e6..17fe530d 100644 --- a/lib/go/thrift/json_protocol.go +++ b/lib/go/thrift/json_protocol.go @@ -158,12 +158,10 @@ func (p *TJSONProtocol) WriteSetEnd() error { } func (p *TJSONProtocol) WriteBool(b bool) error { - //return p.OutputBool(b) - not for Thrift JSON if b { return p.WriteI32(1) - } else { - return p.WriteI32(0) } + return p.WriteI32(0) } func (p *TJSONProtocol) WriteByte(b byte) error {