Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Nov 19, 2023
1 parent 9a803e5 commit bbd8b3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/consumers/pdf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ func buildPdf(data any) string {
panic(err)
}
tmpl.Execute(f, data)
f.Close()
if err = f.Close(); err != nil{
panic(err)
}
pw, err := playwright.Run()
assertErrorToNilf("could not launch playwright: %w", err)

Expand Down

0 comments on commit bbd8b3f

Please sign in to comment.