Skip to content

Commit

Permalink
Removed duplicated code in binder
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Aug 3, 2017
1 parent b42edd7 commit 2b6ea65
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ func (b *DefaultBinder) Bind(i interface{}, c Context) (err error) {
if err = b.bindPathData(i, c); err != nil {
return NewHTTPError(http.StatusBadRequest, err.Error())
}
if err = b.bindPathData(i, c); err != nil {
return NewHTTPError(http.StatusBadRequest, err.Error())
}
ctype := req.Header.Get(HeaderContentType)
switch {
case strings.HasPrefix(ctype, MIMEApplicationJSON):
Expand Down

0 comments on commit 2b6ea65

Please sign in to comment.