chore(templates): satisfy lints

Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
Dwi Siswanto 2025-09-29 18:20:30 +07:00
parent 7a151080c4
commit b987b74d41
No known key found for this signature in database
GPG Key ID: 3BB198907EF44CED

View File

@ -31,7 +31,9 @@ func BenchmarkParseTemplateFromReader(b *testing.B) {
if err != nil { if err != nil {
b.Fatalf("could not open template file: %s", err) b.Fatalf("could not open template file: %s", err)
} }
defer file.Close() defer func() {
_ = file.Close()
}()
content, err := io.ReadAll(file) content, err := io.ReadAll(file)
if err != nil { if err != nil {