Skip to content

Commit 538178d

Browse files
committed
cleanup
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 62443fd commit 538178d

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

metrics/misc.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@ func paramsGetWithDefault(params url.Values, name, defaultValue string) (value s
1414
return
1515
}
1616

17-
func paramsGetRequired(params url.Values, name string) (value string, err error) {
18-
value = params.Get(name)
19-
if value == "" {
20-
err = fmt.Errorf("parameter \"%v\" is missing", name)
21-
}
22-
23-
return
24-
}
25-
2617
func paramsGetList(params url.Values, name string) (list []string, err error) {
2718
for _, v := range params[name] {
2819
list = append(list, stringToStringList(v, ",")...)

metrics/settings.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ func NewRequestMetricSettings(r *http.Request, opts config.Opts) (RequestMetricS
8181
return ret, fmt.Errorf("parameter \"resourceType\" or \"filter\" is missing")
8282
}
8383

84-
fmt.Println(ret.Filter )
8584
// param timespan
8685
ret.Timespan = paramsGetWithDefault(params, "timespan", "PT1M")
8786

0 commit comments

Comments
 (0)