From 7395745a5f11274632e4d8f1ffffd40096f255bc Mon Sep 17 00:00:00 2001 From: treywelsh Date: Mon, 1 Apr 2019 09:57:28 +0200 Subject: [PATCH] B #3114: GOCA - remove deprecated boolean field from response Signed-off-by: Pierre Lafievre --- src/oca/go/src/goca/goca.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/oca/go/src/goca/goca.go b/src/oca/go/src/goca/goca.go index d62324b5f4..21911c240b 100644 --- a/src/oca/go/src/goca/goca.go +++ b/src/oca/go/src/goca/goca.go @@ -48,10 +48,9 @@ type oneClient struct { } type response struct { - status bool - body string - bodyInt int - bodyBool bool + status bool + body string + bodyInt int } // Initializes the client variable, used as a singleton @@ -140,8 +139,7 @@ func (c *oneClient) endpointCall(url string, method string, args ...interface{}) status bool body string bodyInt int64 - bodyBool bool - errCode int64 + errCode int64 ) xmlArgs := make([]interface{}, len(args)+1) @@ -232,7 +230,7 @@ func (c *oneClient) endpointCall(url string, method string, args ...interface{}) } } - r := &response{status, body, int(bodyInt), bodyBool} + r := &response{status, body, int(bodyInt)} return r, nil }