mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 06:05:30 +02:00
removed duplication
This commit is contained in:
1 parent
959b903193
commit
3c0e3cf410
5 files changed
+14
-39
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user