mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Python: Fix implicit this warnings
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user