Explicitly ignore errors from writes to responses
Some checks failed
/ docker (push) Failing after 15m26s

This commit is contained in:
Melody Becker 2025-05-22 17:29:09 +02:00
parent ef95a0552d
commit 4a2462e24e
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
30 changed files with 280 additions and 237 deletions

View file

@ -43,7 +43,7 @@ func main() {
if err != nil {
panic(err)
}
defer file.Close()
defer func() { _ = file.Close() }()
input = file
}
if *flagOutputFile == "" {
@ -53,7 +53,7 @@ func main() {
if err != nil {
panic(err)
}
defer file.Close()
defer func() { _ = file.Close() }()
output = file
}
@ -176,5 +176,5 @@ func main() {
outBuilder.WriteString("\n}")
// And write the entire thing to the output
fmt.Fprint(output, outBuilder.String())
_, _ = fmt.Fprint(output, outBuilder.String())
}