remove len(sshKeys) == 0 check

This commit is contained in:
Maxim Slipenko 2024-12-21 21:25:38 +00:00
parent c271779092
commit 515eec3d1a

View file

@ -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 {