chore: comment out unused code

pull/5746/head
Pavel Zavora 2021-05-03 07:13:37 +02:00
parent de1cb4c4fb
commit afa4621964
1 changed files with 9 additions and 9 deletions

View File

@ -495,15 +495,15 @@ func paramID(key string, r *http.Request) (int, error) {
return id, nil
}
func paramInt64(key string, r *http.Request) (int64, error) {
ctx := r.Context()
param := httprouter.GetParamFromContext(ctx, key)
v, err := strconv.ParseInt(param, 10, 64)
if err != nil {
return -1, fmt.Errorf("Error converting parameter %s", param)
}
return v, nil
}
// func paramInt64(key string, r *http.Request) (int64, error) {
// ctx := r.Context()
// param := httprouter.GetParamFromContext(ctx, key)
// v, err := strconv.ParseInt(param, 10, 64)
// if err != nil {
// return -1, fmt.Errorf("Error converting parameter %s", param)
// }
// return v, nil
// }
func paramStr(key string, r *http.Request) (string, error) {
ctx := r.Context()