Skip to content

Commit e14e0cd

Browse files
authored
Merge pull request github#13888 from github/revert-13757-sources
Revert "Swift: Pragmatic fix for CustomUrlSchemes.qll."
2 parents 2300285 + 761db70 commit e14e0cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

swift/ql/lib/codeql/swift/frameworks/StandardLibrary/CustomUrlSchemes.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ private class ApplicationWithLaunchOptionsFunc extends Function {
5656

5757
private class LaunchOptionsUrlVarDecl extends VarDecl {
5858
LaunchOptionsUrlVarDecl() {
59-
// ideally this would be the more accurate, but currently less robust:
60-
// this.getEnclosingDecl().asNominalTypeDecl().getFullName() = "UIApplication.LaunchOptionsKey" and
61-
this.getType().(NominalType).getFullName() = "UIApplication.LaunchOptionsKey" and
59+
this.getEnclosingDecl().asNominalTypeDecl().getFullName() = "UIApplication.LaunchOptionsKey" and
6260
this.getName() = "url"
6361
}
6462
}

0 commit comments

Comments
 (0)