Skip to content

Commit

Permalink
fix: error checking in TestHardcodedIncludeDirectiveDDOS2
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdr committed Aug 27, 2024
1 parent a866e74 commit f0f1d06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/seclang/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ func TestHardcodedIncludeDirectiveDDOS2(t *testing.T) {
if err != nil {
t.Fatal(err)
}
tmpFile2.Close()
err = tmpFile2.Close()
if err != nil {
t.Fatal(err)
}

w := bufio.NewWriter(tmpFile)
for i := 0; i < maxIncludeRecursion+1; i++ {
Expand Down

0 comments on commit f0f1d06

Please sign in to comment.