Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Nov 19, 2023
1 parent 8e9cdb8 commit 81f756f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/consumers/pdf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func sendToS3(filename, bucket, region string) {
}
// filename is statically defined above
//nolint:gosec
data, err := os.ReadFile(filename)
data, err := os.ReadFile(filename) //nolint:gosec
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -97,7 +97,7 @@ func buildPdf(data any) string {
panic(err)
}
//nolint:gosec
f, err := os.OpenFile(filepath.Join(currentPath, "report.html"), os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0o600)
f, err := os.OpenFile(filepath.Join(currentPath, "report.html"), os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0o600) //nolint:gosec
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 81f756f

Please sign in to comment.