Fix lint errors: handle error return values

This commit is contained in:
Steve Yegge
2025-11-15 12:52:34 -08:00
parent 690c73fc31
commit 6f7e7fa930
6 changed files with 10 additions and 10 deletions

View File

@@ -545,7 +545,7 @@ func attemptAutoMerge(conflictedPath string) error {
if err != nil {
return fmt.Errorf("failed to create temp directory: %w", err)
}
defer os.RemoveAll(tmpDir)
defer func() { _ = os.RemoveAll(tmpDir) }()
basePath := filepath.Join(tmpDir, "base.jsonl")
leftPath := filepath.Join(tmpDir, "left.jsonl")