mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 23:25:27 +00:00
chore(templates): satisfy lints
Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
parent
7a151080c4
commit
b987b74d41
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user