Apply gofmt formatting to all Go files (#588)

## Summary
- Applied `gofmt -s -w` across the entire codebase to ensure consistent
Go formatting
- This will trigger a deployment with minimal code changes

## Test plan
- [x] Pre-commit hooks pass
- [x] No functional changes, formatting only

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Tadas Antanavicius 2025-09-30 07:32:22 -07:00 • committed by GitHub
commit 8bd13d5ed7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 107 additions and 110 deletions

View file

@ -308,7 +308,7 @@ func createServerJSON(
URL: repoURL,
Source: repoSource,
},
Version: version,
Version: version,
Packages: []model.Package{pkg},
}
}

View file

@ -13,7 +13,7 @@ func LogoutCommand() error {
}
tokenPath := filepath.Join(homeDir, TokenFileName)
// Check if token file exists
if _, err := os.Stat(tokenPath); os.IsNotExist(err) {
_, _ = fmt.Fprintln(os.Stdout, "Not logged in")
@ -30,7 +30,7 @@ func LogoutCommand() error {
".mcpregistry_github_token",
".mcpregistry_registry_token",
}
for _, file := range legacyFiles {
path := filepath.Join(homeDir, file)
if _, err := os.Stat(path); err == nil {
@ -40,4 +40,4 @@ func LogoutCommand() error {
_, _ = fmt.Fprintln(os.Stdout, "✓ Successfully logged out")
return nil
}
}

View file

@ -67,4 +67,4 @@ func printUsage() {
_, _ = fmt.Fprintln(os.Stdout, " publish Publish server.json to the registry")
_, _ = fmt.Fprintln(os.Stdout)
_, _ = fmt.Fprintln(os.Stdout, "Use 'mcp-publisher <command> --help' for more information about a command.")
}
}