Python: Fix implicit this warnings

This commit is contained in:
Taus
2022-11-21 15:23:13 +00:00
parent a385e87273
commit f12e15b46b

View File

@@ -93,16 +93,16 @@ class ResolutionTest extends InlineExpectationsTest {
}
}
private string getTagForVersion(int version) {
result = "prints" + version and
version = major_version()
}
class VersionSpecificResolutionTest extends InlineExpectationsTest {
VersionSpecificResolutionTest() { this = "VersionSpecificResolutionTest" }
override string getARelevantTag() { result = getTagForVersion(_) }
private string getTagForVersion(int version) {
result = "prints" + version and
version = major_version()
}
override predicate hasActualResult(Location location, string element, string tag, string value) {
(
exists(DataFlow::PathNode source, DataFlow::PathNode sink, ImportConfiguration config |