fix?
alex wennerberg alex@alexwennerberg.com
Thu, 28 Jan 2021 21:41:10 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
feed.go
→
feed.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