Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Peltoche committed Oct 1, 2018
1 parent 263c1f6 commit 9f4a029
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9f4a029

Please sign in to comment.