From dda716ecc34c24b0aa51580b996fb5439c2bd1f9 Mon Sep 17 00:00:00 2001 From: Oliver Baer <75138893+mrwind-up-bird@users.noreply.github.com> Date: Tue, 10 Mar 2026 02:54:20 +0100 Subject: [PATCH] fix(autofix): Duplicate path expansion logic --- cmd/ckb/token.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cmd/ckb/token.go b/cmd/ckb/token.go index ea3f441a..3823b144 100644 --- a/cmd/ckb/token.go +++ b/cmd/ckb/token.go @@ -248,14 +248,8 @@ func runTokenList(cmd *cobra.Command, args []string) { repos = repos[:9] + "..." } } - - rate := "-" - if key.RateLimit != nil { - rate = fmt.Sprintf("%d/m", *key.RateLimit) - } - - lastUsed := "never" - if key.LastUsedAt != nil { + home, _ := os.UserHomeDir() + return filepath.Join(home, strings.TrimPrefix(path, "~/")) lastUsed = formatTimeAgo(*key.LastUsedAt) }