From f229580bebe6ef9439cbf33c6069f5cb94894703 Mon Sep 17 00:00:00 2001 From: mwang Date: Fri, 11 Nov 2022 14:29:29 +0800 Subject: [PATCH] remove useless struct --- adapters/freewheelssp/freewheelssp.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/adapters/freewheelssp/freewheelssp.go b/adapters/freewheelssp/freewheelssp.go index 6b7e2be9109..0f82952d3e1 100644 --- a/adapters/freewheelssp/freewheelssp.go +++ b/adapters/freewheelssp/freewheelssp.go @@ -11,10 +11,6 @@ import ( "net/http" ) -type RequestImpExt struct { - ZoneId int `json:"zoneId"` -} - type adapter struct { endpoint string } @@ -35,12 +31,9 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.E Message: fmt.Sprintf("Invalid imp.ext for impression index %d. Error Infomation: %s", i, err.Error()), }} } - requestImpExt := RequestImpExt{ - ZoneId: impExt.ZoneId, - } var err error - if imp.Ext, err = json.Marshal(requestImpExt); err != nil { + if imp.Ext, err = json.Marshal(impExt); err != nil { return nil, []error{&errortypes.BadInput{ Message: fmt.Sprintf("Unable to transfer requestImpExt to Json fomat, %s", err.Error()), }}