Skip to content

Commit e39753c

Browse files
authored
Merge pull request github#552 from github/deferinloop-kind
Add @kind to deferinloop.ql
2 parents b03513b + e227a43 commit e39753c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ql/examples/snippets/deferinloop.ql

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @description A deferred statement in a loop will not execute until the end of the function.
44
* This can lead to unintentionally holding resources open like file handles or database transactions.
55
* @id go/examples/deferinloop
6+
* @kind problem
67
* @tags defer
78
* nesting
89
*/

0 commit comments

Comments
 (0)