diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2024-02-14 18:50:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 12:50:10 -0500 |
commit | 155269fa586c41a268530c3bb56349e68e6761d7 (patch) | |
tree | 6164c1178e95e3aec7d09f07af02ae0ae6d3ec02 /models/user/error.go | |
parent | d0183dfa49125a9e533dbe8beab4d8a3724a4f07 (diff) | |
download | gitea-155269fa586c41a268530c3bb56349e68e6761d7.tar.gz gitea-155269fa586c41a268530c3bb56349e68e6761d7.zip |
Remove unused `KeyID`. (#29167)
`KeyID` is never set.
Diffstat (limited to 'models/user/error.go')
-rw-r--r-- | models/user/error.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/models/user/error.go b/models/user/error.go index ef572c178a..cbf19998d1 100644 --- a/models/user/error.go +++ b/models/user/error.go @@ -31,9 +31,8 @@ func (err ErrUserAlreadyExist) Unwrap() error { // ErrUserNotExist represents a "UserNotExist" kind of error. type ErrUserNotExist struct { - UID int64 - Name string - KeyID int64 + UID int64 + Name string } // IsErrUserNotExist checks if an error is a ErrUserNotExist. @@ -43,7 +42,7 @@ func IsErrUserNotExist(err error) bool { } func (err ErrUserNotExist) Error() string { - return fmt.Sprintf("user does not exist [uid: %d, name: %s, keyid: %d]", err.UID, err.Name, err.KeyID) + return fmt.Sprintf("user does not exist [uid: %d, name: %s]", err.UID, err.Name) } // Unwrap unwraps this error as a ErrNotExist error |