Skip to content

Commit

Permalink
remove useless struct
Browse files Browse the repository at this point in the history
  • Loading branch information
mwang-sticky committed Nov 11, 2022
1 parent b667a7b commit f229580
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions adapters/freewheelssp/freewheelssp.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import (
"net/http"
)

type RequestImpExt struct {
ZoneId int `json:"zoneId"`
}

type adapter struct {
endpoint string
}
Expand All @@ -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()),
}}
Expand Down

0 comments on commit f229580

Please sign in to comment.