Python: Apply suggestions from code review

Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
Rasmus Wriedt Larsen
2022-10-28 15:31:42 +02:00
committed by GitHub
parent b3f29b0a53
commit a04c78ab94

View File

@@ -19,7 +19,7 @@ class UseTest extends InlineExpectationsTest {
)
or
exists(EssaVariable var | AdjacentUses::firstUse(var, nodeTo) |
prevLoc = var.getDefinition().getLocation() and
prevLoc = var.getLocation() and
name = var.getName() and
tag = "def-use"
)
@@ -31,7 +31,7 @@ class UseTest extends InlineExpectationsTest {
or
exists(EssaVariable var | AdjacentUses::firstUse(var, _) |
value = var.getName() and
location = var.getDefinition().getLocation() and
location = var.getLocation() and
element = var.getName() and
name = var.getName() and
tag = "def"