mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 04:18:46 +00:00
1 file changed
+1
@@ -108,6 +108,7 @@ func (p DestinationPublisher) Publish(d Descriptor) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer f.Close()
|
||||||
|
|
||||||
_, err = io.Copy(f, src)
|
_, err = io.Copy(f, src)
|
||||||
if err == nil && d.StatCounter != nil {
|
if err == nil && d.StatCounter != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user