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