fix: resolve golangci-lint errors

- Add _ = prefix for ignored Close/Remove return values
- Fix unused cmd parameter in runMoleculeReady
- Add nolint:misspell for intentional British "cancelled" spelling
- Update comments to use US spelling where not intentional

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-23 05:10:38 -08:00
parent fcf5e6aab6
commit 8b49d8f079
4 changed files with 9 additions and 9 deletions

View File

@@ -126,7 +126,7 @@ func ExpiredTombstones(path string) error {
issue.SetDefaults()
allIssues = append(allIssues, &issue)
}
file.Close()
_ = file.Close()
ttl := types.DefaultTombstoneTTL
@@ -156,16 +156,16 @@ func ExpiredTombstones(path string) error {
encoder := json.NewEncoder(tempFile)
for _, issue := range kept {
if err := encoder.Encode(issue); err != nil {
tempFile.Close()
os.Remove(tempPath)
_ = tempFile.Close()
_ = os.Remove(tempPath)
return fmt.Errorf("failed to write issue %s: %w", issue.ID, err)
}
}
tempFile.Close()
_ = tempFile.Close()
// Atomically replace
if err := os.Rename(tempPath, jsonlPath); err != nil {
os.Remove(tempPath)
_ = os.Remove(tempPath)
return fmt.Errorf("failed to replace issues.jsonl: %w", err)
}

View File

@@ -268,7 +268,7 @@ var blockedCmd = &cobra.Command{
}
// runMoleculeReady shows ready steps within a specific molecule
func runMoleculeReady(cmd *cobra.Command, molIDArg string) {
func runMoleculeReady(_ *cobra.Command, molIDArg string) {
ctx := rootCtx
// Molecule-ready requires direct store access for subgraph loading