mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-04 13:12:23 +00:00
remove len(sshKeys) == 0
check
This commit is contained in:
parent
c271779092
commit
515eec3d1a
1 changed files with 0 additions and 4 deletions
|
@ -1222,10 +1222,6 @@ func updateSSHPubIfNeed(
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(sshKeys) == 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
if asymkey_model.SynchronizePublicKeys(ctx, user, authSource, sshKeys) {
|
if asymkey_model.SynchronizePublicKeys(ctx, user, authSource, sshKeys) {
|
||||||
err = asymkey_model.RewriteAllPublicKeys(ctx)
|
err = asymkey_model.RewriteAllPublicKeys(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue