mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
close file after write
This commit is contained in:
parent
897a6bc267
commit
494289eb6f
@ -33,5 +33,9 @@ func renderIndex(srcFilename, outFilename string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := f.Close(); err != nil {
|
||||
return fmt.Errorf("unable to close index file: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user