Skip to content

Commit

Permalink
Properly close the rss xml file after encoding
Browse files Browse the repository at this point in the history
Signed-off-by: Sandy <sandy@sandyuraz.com>
  • Loading branch information
thecsw committed Jan 16, 2023
1 parent 25693ee commit 95f73cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ichika/rss.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ func rssf(dryRun bool) {
fmt.Printf("failed to encode %s: %s\n", rssXMLFilename, err)
os.Exit(1)
}
if err := feedXml.Close(); err != nil {
fmt.Printf("failed to close %s: %s", rssXMLFilename, err)
os.Exit(1)
}
fmt.Printf("Created rss file in %s\n", rssXMLFilename)
}

Expand Down

0 comments on commit 95f73cc

Please sign in to comment.