Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Aug 4, 2021
1 parent 62443fd commit 538178d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions metrics/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ func paramsGetWithDefault(params url.Values, name, defaultValue string) (value s
return
}

func paramsGetRequired(params url.Values, name string) (value string, err error) {
value = params.Get(name)
if value == "" {
err = fmt.Errorf("parameter \"%v\" is missing", name)
}

return
}

func paramsGetList(params url.Values, name string) (list []string, err error) {
for _, v := range params[name] {
list = append(list, stringToStringList(v, ",")...)
Expand Down
1 change: 0 additions & 1 deletion metrics/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func NewRequestMetricSettings(r *http.Request, opts config.Opts) (RequestMetricS
return ret, fmt.Errorf("parameter \"resourceType\" or \"filter\" is missing")
}

fmt.Println(ret.Filter )
// param timespan
ret.Timespan = paramsGetWithDefault(params, "timespan", "PT1M")

Expand Down

0 comments on commit 538178d

Please sign in to comment.