mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 16:42:26 -05:00
Update dependencies (#333)
This commit is contained in:
parent
ce22e03f9d
commit
182b4eea73
848 changed files with 377869 additions and 107280 deletions
4
vendor/github.com/gin-gonic/gin/binding/json.go
generated
vendored
4
vendor/github.com/gin-gonic/gin/binding/json.go
generated
vendored
|
|
@ -6,7 +6,7 @@ package binding
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ func (jsonBinding) Name() string {
|
|||
|
||||
func (jsonBinding) Bind(req *http.Request, obj interface{}) error {
|
||||
if req == nil || req.Body == nil {
|
||||
return errors.New("invalid request")
|
||||
return fmt.Errorf("invalid request")
|
||||
}
|
||||
return decodeJSON(req.Body, obj)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue