removed duplication

This commit is contained in:
pomidorry
2026-06-04 13:46:36 +03:00
parent 959b903193
commit 3c0e3cf410
5 changed files with 14 additions and 39 deletions
+2 -2
View File
@@ -28,9 +28,9 @@ func SSHKeys(ctx *context.Context) {
return
}
keypair, err := ssh_module.GetOrCreateSSHKeypairForOrg(ctx, ctx.Org.Organization.ID)
keypair, err := ssh_module.GetOrCreateSSHKeypair(ctx, ctx.Org.Organization.ID)
if err != nil {
ctx.ServerError("GetOrCreateSSHKeypairForOrg", err)
ctx.ServerError("GetOrCreateSSHKeypair", err)
return
}
+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