aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/keys.go
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2024-01-19 11:45:23 +0900
committerGitHub <noreply@github.com>2024-01-19 10:45:23 +0800
commitb60a7c3358cdeec3e0a731b68be33b6ba63a6563 (patch)
tree3211199f510d1f9ea2318bb596fab02262058014 /cmd/keys.go
parent4674aea25b54baf08594c54f061dee9e44190f02 (diff)
downloadgitea-b60a7c3358cdeec3e0a731b68be33b6ba63a6563.tar.gz
gitea-b60a7c3358cdeec3e0a731b68be33b6ba63a6563.zip
Return `responseText` instead of string in some functions (#28836)
Follow https://github.com/go-gitea/gitea/pull/28796#issuecomment-1891727591
Diffstat (limited to 'cmd/keys.go')
-rw-r--r--cmd/keys.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/keys.go b/cmd/keys.go
index 9d5278f109..ceeec48486 100644
--- a/cmd/keys.go
+++ b/cmd/keys.go
@@ -78,6 +78,6 @@ func runKeys(c *cli.Context) error {
if extra.Error != nil {
return extra.Error
}
- _, _ = fmt.Fprintln(c.App.Writer, strings.TrimSpace(authorizedString))
+ _, _ = fmt.Fprintln(c.App.Writer, strings.TrimSpace(authorizedString.Text))
return nil
}