chore: replace interface{} with any (Go 1.18+ alias)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
800223757c
commit
178e49b174
2 changed files with 4 additions and 4 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue