Skip to content

Commit

Permalink
Refactor param_mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Pubmatic-Dhruv-Sonone committed Jun 3, 2024
1 parent 4443c51 commit 97233a0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions adapters/ortbbidder/param_mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ func (p *ParserImpl) Fledge(currNode, newNode map[string]any, location []string)

func getBidParamParser() map[string]ParserFunc {
return map[string]ParserFunc{
"mtype": func(p Parser, currNode, newNode map[string]any, location []string) {
p.MType(currNode, newNode, location)
},
"dur": func(p Parser, currNode, newNode map[string]any, location []string) {
p.Dur(currNode, newNode, location)
},
"mtype": Parser.MType,
"dur": Parser.Dur,
}
}

Expand Down

0 comments on commit 97233a0

Please sign in to comment.