We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec63547 commit d41268fCopy full SHA for d41268f
go/ql/src/InconsistentCode/UnhandledCloseWritableHandle.ql
@@ -132,7 +132,7 @@ module UnhandledFileCloseConfig implements DataFlow::ConfigSig {
132
predicate observeDiffInformedIncrementalMode() { any() }
133
134
Location getASelectedSourceLocation(DataFlow::Node source) {
135
- exists(DataFlow::CallNode openCall | result = openCall.getLocation() |
+ exists(DataFlow::CallNode openCall | result = [openCall.getLocation(), source.getLocation()] |
136
isWritableFileHandle(source, openCall)
137
)
138
}
0 commit comments