Skip to content

Commit

Permalink
Removed unnecessary strings.TrimSpace call as it is already handle…
Browse files Browse the repository at this point in the history
…d (kueez.json validation file).
  • Loading branch information
saar120 committed Jan 14, 2025
1 parent b76086d commit 31015d9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions adapters/kueezrtb/kueezrtb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 31015d9

Please sign in to comment.