Skip to content

Commit 38072c7

Browse files
Fix typo
Co-authored-by: Copilot <[email protected]>
1 parent 57a0c7a commit 38072c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Resources/FileNotAlwaysClosedQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ abstract class FileClose extends DataFlow::CfgNode {
5959
// The exception is after the close call.
6060
// A full cfg reachability check is not in general feasible for performance, so we approximate it with:
6161
// - A basic block reachability check (here) that works if the expression and close call are in different basic blocks
62-
// - A check (in the `WithStatement` override of `gaurdsExceptions`) for the case where the exception call
62+
// - A check (in the `WithStatement` override of `guardsExceptions`) for the case where the exception call
6363
// is lexically contained in the body of a `with` statement that closes the file.
6464
// This may cause FPs in a case such as:
6565
// f.close()

0 commit comments

Comments
 (0)