From 31015d99c2408c4e9658ab1d3cee76cf507f517d Mon Sep 17 00:00:00 2001 From: saar120 Date: Tue, 14 Jan 2025 08:48:32 +0200 Subject: [PATCH] Removed unnecessary `strings.TrimSpace` call as it is already handled (kueez.json validation file). --- adapters/kueezrtb/kueezrtb.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/adapters/kueezrtb/kueezrtb.go b/adapters/kueezrtb/kueezrtb.go index ee7bf42a19d..0edfbffd382 100644 --- a/adapters/kueezrtb/kueezrtb.go +++ b/adapters/kueezrtb/kueezrtb.go @@ -3,16 +3,14 @@ package kueezrtb import ( "encoding/json" "fmt" - "net/http" - "net/url" - "strings" - "github.com/prebid/openrtb/v20/openrtb2" "github.com/prebid/prebid-server/v3/adapters" "github.com/prebid/prebid-server/v3/config" "github.com/prebid/prebid-server/v3/errortypes" "github.com/prebid/prebid-server/v3/openrtb_ext" "github.com/prebid/prebid-server/v3/util/jsonutil" + "net/http" + "net/url" ) type adapter struct { @@ -118,7 +116,7 @@ func extractCid(imp *openrtb2.Imp) (string, error) { if err := jsonutil.Unmarshal(bidderExt.Bidder, &impExt); err != nil { return "", fmt.Errorf("unmarshal ImpExtkueez: %w", err) } - return strings.TrimSpace(impExt.ConnectionId), nil + return impExt.ConnectionId, nil } func getMediaTypeForBid(bid openrtb2.Bid) (openrtb_ext.BidType, error) {