mirror of
https://github.com/gin-gonic/gin.git
synced 2025-08-23 15:30:52 +08:00
chore: upgrade golangci-lint and fix golangci-lint error (#3278)
This commit is contained in:
@ -124,10 +124,11 @@ func (a errorMsgs) Last() *Error {
|
||||
|
||||
// Errors returns an array with all the error messages.
|
||||
// Example:
|
||||
// c.Error(errors.New("first"))
|
||||
// c.Error(errors.New("second"))
|
||||
// c.Error(errors.New("third"))
|
||||
// c.Errors.Errors() // == []string{"first", "second", "third"}
|
||||
//
|
||||
// c.Error(errors.New("first"))
|
||||
// c.Error(errors.New("second"))
|
||||
// c.Error(errors.New("third"))
|
||||
// c.Errors.Errors() // == []string{"first", "second", "third"}
|
||||
func (a errorMsgs) Errors() []string {
|
||||
if len(a) == 0 {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user