From 9f4a02924e59879f3f51b68f3be8ff273330484c Mon Sep 17 00:00:00 2001 From: Peltoche Date: Mon, 1 Oct 2018 13:57:22 +0200 Subject: [PATCH] Fix lint error --- analyzer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/analyzer.go b/analyzer.go index 7d4d572..6b4a195 100644 --- a/analyzer.go +++ b/analyzer.go @@ -137,8 +137,7 @@ func (t *Analyzer) validateQueryParameter(req *http.Request, param *spec.Paramet } func (t *Analyzer) validatePathParameter(pathParams denco.Params, param *spec.Parameter) error { - var res interface{} - res = pathParams.Get(param.Name) + var res interface{} = pathParams.Get(param.Name) if param.Type == "integer" { nParam, err := strconv.Atoi(pathParams.Get(param.Name)) if err == nil {