mirror of
https://github.com/restic/restic.git
synced 2026-02-17 06:23:56 +00:00
Add more error handling
This commit is contained in:
@@ -237,7 +237,9 @@ func preCheckChangelogVersion() {
|
||||
if err != nil {
|
||||
die("unable to open CHANGELOG.md: %v", err)
|
||||
}
|
||||
defer f.Close()
|
||||
defer func() {
|
||||
_ = f.Close()
|
||||
}()
|
||||
|
||||
sc := bufio.NewScanner(f)
|
||||
for sc.Scan() {
|
||||
|
||||
Reference in New Issue
Block a user