all repos — flounder @ 189e8335353ec3b951d337e7fa4346cfadc80035

A small site builder for the Gemini protocol

fix?
alex wennerberg alex@alexwennerberg.com
Thu, 28 Jan 2021 21:41:10 -0800
commit

189e8335353ec3b951d337e7fa4346cfadc80035

parent

4791b3472756756ba175b7d8dc33e842d062c346

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M feed.gofeed.go

@@ -126,6 +126,7 @@ data.FeedItems = data.FeedItems[:maxItems]

} 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 @@ err = gt.ExecuteTemplate(outputf, "following.gmi", data)

if err != nil { return err } - defer outputf.Close() // convert to gemini template // write template to file return nil