mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
fix lints
This commit is contained in:
@@ -131,7 +131,6 @@ func (err ErrBadgeAlreadyExist) Unwrap() error {
|
||||
// ErrBadgeNotExist represents a "BadgeNotExist" kind of error.
|
||||
type ErrBadgeNotExist struct {
|
||||
Slug string
|
||||
ID int64
|
||||
}
|
||||
|
||||
// IsErrBadgeNotExist checks if an error is a ErrBadgeNotExist.
|
||||
@@ -141,7 +140,7 @@ func IsErrBadgeNotExist(err error) bool {
|
||||
}
|
||||
|
||||
func (err ErrBadgeNotExist) Error() string {
|
||||
return fmt.Sprintf("badge does not exist [slug: %s | id: %d]", err.Slug, err.ID)
|
||||
return fmt.Sprintf("badge does not exist [slug: %s]", err.Slug)
|
||||
}
|
||||
|
||||
// Unwrap unwraps this error as a ErrNotExist error
|
||||
|
||||
Reference in New Issue
Block a user