Add review feedback

This commit is contained in:
Simon Engledew
2021-03-19 14:21:45 +00:00
committed by GitHub
parent c6ae48f090
commit 43b4cd69f8

View File

@@ -1,5 +1,5 @@
/**
* @name Defer In Loop
* @name Defer in loop
* @description A deferred statement in a loop will not execute until the end of the function.
* This can lead to unintentionally holding resources open like file handles or database transactions.
* @id go/examples/deferinloop
@@ -10,5 +10,5 @@
import go
from LoopStmt loop, DeferStmt defer
where loop.getAChildStmt+() = defer
where loop.getBody().getAChildStmt+() = defer
select defer, "This defer statement is in a $@.", loop, "loop"