mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-08-06 01:37:25 +08:00
Remove check for negative length (#5120)
This commit is contained in:

committed by
techknowlogick

parent
583b1b8429
commit
5a4648cdd6
@ -376,7 +376,7 @@ func calcFingerprint(publicKeyContent string) (string, error) {
|
||||
}
|
||||
|
||||
func addKey(e Engine, key *PublicKey) (err error) {
|
||||
if len(key.Fingerprint) <= 0 {
|
||||
if len(key.Fingerprint) == 0 {
|
||||
key.Fingerprint, err = calcFingerprint(key.Content)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user