flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 189e8335353ec3b951d337e7fa4346cfadc80035
parent 4791b3472756756ba175b7d8dc33e842d062c346
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu, 28 Jan 2021 21:41:10 -0800

fix?

Diffstat:
Mfeed.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/feed.go b/feed.go @@ -126,6 +126,7 @@ func writeAllFeeds(user string) error { } outputf, err := os.OpenFile(path.Join(getUserDirectory(user), followingFile), os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755) + defer outputf.Close() if err != nil { return err } @@ -133,7 +134,6 @@ func writeAllFeeds(user string) error { if err != nil { return err } - defer outputf.Close() // convert to gemini template // write template to file return nil