mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Fix typo in FileWritable
This commit is contained in:
committed by
GitHub
parent
70f4efb834
commit
23548c50e1
@@ -62,7 +62,7 @@ private EnumConstant getAContainedEnumConstant(Expr enumSetRef) {
|
||||
private VarAccess getFileForPathConversion(Expr pathExpr) {
|
||||
pathExpr.getType().(RefType).hasQualifiedName("java.nio.file", "Path") and
|
||||
(
|
||||
// Look for conversion from `File` to `Path` using `file.getPath()`.
|
||||
// Look for conversion from `File` to `Path` using `file.toPath()`.
|
||||
exists(MethodAccess fileToPath |
|
||||
fileToPath = pathExpr and
|
||||
result = fileToPath.getQualifier() and
|
||||
|
||||
Reference in New Issue
Block a user