From 178e49b174545ec3c07802c4bc348b887affcc00 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Feb 2026 16:21:49 +0000 Subject: [PATCH] chore: replace interface{} with any (Go 1.18+ alias) Co-Authored-By: Claude Opus 4.6 --- cmd/doctor/cmd_doctor.go | 4 ++-- cmd/doctor/cmd_environment.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/doctor/cmd_doctor.go b/cmd/doctor/cmd_doctor.go index 4e8a7040..4aec921d 100644 --- a/cmd/doctor/cmd_doctor.go +++ b/cmd/doctor/cmd_doctor.go @@ -95,10 +95,10 @@ func runDoctor(verbose bool) error { // Summary fmt.Println() if failed > 0 { - cli.Error(i18n.T("cmd.doctor.issues", map[string]interface{}{"Count": failed})) + cli.Error(i18n.T("cmd.doctor.issues", map[string]any{"Count": failed})) fmt.Printf("\n%s\n", i18n.T("cmd.doctor.install_missing")) printInstallInstructions() - return fmt.Errorf("%s", i18n.T("cmd.doctor.issues_error", map[string]interface{}{"Count": failed})) + return fmt.Errorf("%s", i18n.T("cmd.doctor.issues_error", map[string]any{"Count": failed})) } cli.Success(i18n.T("cmd.doctor.ready")) diff --git a/cmd/doctor/cmd_environment.go b/cmd/doctor/cmd_environment.go index 3663a7cd..f71c4533 100644 --- a/cmd/doctor/cmd_environment.go +++ b/cmd/doctor/cmd_environment.go @@ -46,7 +46,7 @@ func checkGitHubCLI() bool { func checkWorkspace() { registryPath, err := repos.FindRegistry(io.Local) if err == nil { - fmt.Printf(" %s %s\n", successStyle.Render("✓"), i18n.T("cmd.doctor.repos_yaml_found", map[string]interface{}{"Path": registryPath})) + fmt.Printf(" %s %s\n", successStyle.Render("✓"), i18n.T("cmd.doctor.repos_yaml_found", map[string]any{"Path": registryPath})) reg, err := repos.LoadRegistry(io.Local, registryPath) if err == nil { @@ -71,7 +71,7 @@ func checkWorkspace() { cloned++ } } - fmt.Printf(" %s %s\n", successStyle.Render("✓"), i18n.T("cmd.doctor.repos_cloned", map[string]interface{}{"Cloned": cloned, "Total": len(allRepos)})) + fmt.Printf(" %s %s\n", successStyle.Render("✓"), i18n.T("cmd.doctor.repos_cloned", map[string]any{"Cloned": cloned, "Total": len(allRepos)})) } } else { fmt.Printf(" %s %s\n", dimStyle.Render("○"), i18n.T("cmd.doctor.no_repos_yaml"))