matcha
matcha copied to clipboard
BUG: Unchecked outFile.Close() error in runUpdateCLI
Describe the bug
In runUpdateCLI() (main.go:3310), after writing the downloaded asset to disk with io.Copy, outFile.Close() is called without checking the returned error. If Close() fails (e.g., disk full), the written data may be incomplete but the update proceeds.
To reproduce
- Trigger an update with a nearly-full disk
- The file may be incomplete but the update continues
Expected behavior
outFile.Close() error should be checked and returned if non-nil.
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.