Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
anand-venkatraman committed Jun 28, 2024
1 parent 0a2a52c commit f4c20f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions adapters/pulsepoint/pulsepoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"net/http"
"reflect"
"strconv"

"github.com/prebid/prebid-server/v2/adapters"
Expand Down Expand Up @@ -182,8 +181,7 @@ func getBidType(imp openrtb2.Imp) openrtb_ext.BidType {
}

func parseParam(paramName string, paramValue jsonutil.StringInt) (string, error) {
ref := reflect.ValueOf(paramValue)
value := int(ref.Int())
value := int(paramValue)
// verify we got a non-zero value
if value == 0 {
return "", errors.New("param not found - " + paramName)
Expand Down

0 comments on commit f4c20f4

Please sign in to comment.