mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Merge pull request #7662 from JLLeitschuh/patch-2
Fix typo in FileWritable
This commit is contained in:
@@ -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