removed duplication

This commit is contained in:
pomidorry committed 2026-06-04 13:46:36 +03:00
1 parent 959b903193
commit 3c0e3cf410
5 files changed
+14 -39

No files matched your search

+1 -1
View File
@@ -343,7 +343,7 @@ func loadKeysData(ctx *context.Context) {
ctx.Data["UserDisabledFeatures"] = user_model.DisabledFeaturesWithLoginType(ctx.Doer)
// Load SSH mirror keypair if it exists
mirrorKeypair, err := ssh_module.GetOrCreateSSHKeypairForUser(ctx, ctx.Doer.ID)
mirrorKeypair, err := ssh_module.GetOrCreateSSHKeypair(ctx, ctx.Doer.ID)
if err == nil {
ctx.Data["HasManagedSSHKey"] = true