fix: Resolve CI lint and build errors
- Add error suppression for enc.Encode() calls in info.go (errcheck lint) - Add missing encoding/json import in install_integration_test.go 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,7 +48,7 @@ Examples:
|
||||
if jsonFlag {
|
||||
enc := json.NewEncoder(os.Stdout)
|
||||
enc.SetIndent("", " ")
|
||||
enc.Encode(info)
|
||||
_ = enc.Encode(info)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ func showWhatsNew(jsonOutput bool) {
|
||||
if jsonOutput {
|
||||
enc := json.NewEncoder(os.Stdout)
|
||||
enc.SetIndent("", " ")
|
||||
enc.Encode(map[string]interface{}{
|
||||
_ = enc.Encode(map[string]interface{}{
|
||||
"current_version": Version,
|
||||
"recent_changes": versionChanges,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user