fix(lint): resolve errcheck and unparam violations
Fixes CI lint failures by handling unchecked error returns and marking unused parameters with blank identifiers. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
5d554a616a
commit
b9e8be4352
@@ -100,7 +100,7 @@ func warnIfTownRootOffMain() {
|
||||
// checkBeadsDependency verifies beads meets minimum version requirements.
|
||||
// Skips check for exempt commands (version, help, completion).
|
||||
// Deprecated: Use persistentPreRun instead, which calls CheckBeadsVersion.
|
||||
func checkBeadsDependency(cmd *cobra.Command, args []string) error {
|
||||
func checkBeadsDependency(cmd *cobra.Command, _ []string) error {
|
||||
// Get the root command name being run
|
||||
cmdName := cmd.Name()
|
||||
|
||||
@@ -142,7 +142,7 @@ func checkStaleBinaryWarning() {
|
||||
|
||||
if info.IsStale {
|
||||
staleBinaryWarned = true
|
||||
os.Setenv("GT_STALE_WARNED", "1")
|
||||
_ = os.Setenv("GT_STALE_WARNED", "1")
|
||||
|
||||
msg := fmt.Sprintf("gt binary is stale (built from %s, repo at %s)",
|
||||
version.ShortCommit(info.BinaryCommit), version.ShortCommit(info.RepoCommit))
|
||||
|
||||
Reference in New Issue
Block a user