We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e123a commit 6f18abcCopy full SHA for 6f18abc
routers/api/v1/misc/signing.go
@@ -4,8 +4,6 @@
4
package misc
5
6
import (
7
- "errors"
8
-
9
"code.gitea.io/gitea/modules/git"
10
asymkey_service "code.gitea.io/gitea/services/asymkey"
11
"code.gitea.io/gitea/services/context"
@@ -109,7 +107,7 @@ func SigningKeySSH(ctx *context.APIContext) {
109
107
return
110
108
}
111
if format != git.KeyTypeSSH {
112
- ctx.APIErrorNotFound(errors.New("GPG keys are used for signing, not SSH"))
+ ctx.APIErrorNotFound("GPG keys are used for signing, not SSH")
113
114
115
_, _ = ctx.Write([]byte(content))
0 commit comments