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

@@ -607,11 +607,11 @@ Examples:
// Write current value to temp file
if _, err := tmpFile.WriteString(currentValue); err != nil {
tmpFile.Close()
_ = tmpFile.Close()
fmt.Fprintf(os.Stderr, "Error writing to temp file: %v\n", err)
os.Exit(1)
}
tmpFile.Close()
_ = tmpFile.Close()
// Open the editor
editorCmd := exec.Command(editor, tmpPath)