Removes unused underscore

This commit is contained in:
Manu Mtz-Almeida
2015-07-10 13:06:01 +02:00
parent fc5e355724
commit 0494e1b66a
3 changed files with 10 additions and 10 deletions

View File

@ -12,11 +12,11 @@ import (
type jsonBinding struct{}
func (_ jsonBinding) Name() string {
func (jsonBinding) Name() string {
return "json"
}
func (_ jsonBinding) Bind(req *http.Request, obj interface{}) error {
func (jsonBinding) Bind(req *http.Request, obj interface{}) error {
decoder := json.NewDecoder(req.Body)
if err := decoder.Decode(obj); err != nil {
return err