Skip to content

Commit f12e15b

Browse files
committed
Python: Fix implicit this warnings
1 parent a385e87 commit f12e15b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/ql/test/experimental/import-resolution/importflow.ql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,16 @@ class ResolutionTest extends InlineExpectationsTest {
9393
}
9494
}
9595

96+
private string getTagForVersion(int version) {
97+
result = "prints" + version and
98+
version = major_version()
99+
}
100+
96101
class VersionSpecificResolutionTest extends InlineExpectationsTest {
97102
VersionSpecificResolutionTest() { this = "VersionSpecificResolutionTest" }
98103

99104
override string getARelevantTag() { result = getTagForVersion(_) }
100105

101-
private string getTagForVersion(int version) {
102-
result = "prints" + version and
103-
version = major_version()
104-
}
105-
106106
override predicate hasActualResult(Location location, string element, string tag, string value) {
107107
(
108108
exists(DataFlow::PathNode source, DataFlow::PathNode sink, ImportConfiguration config |

0 commit comments

Comments
 (0)