Skip to content

Commit a04c78a

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <[email protected]>
1 parent b3f29b0 commit a04c78a

File tree

1 file changed

+2
-2
lines changed
  • python/ql/test/library-tests/essa/ssa-compute

1 file changed

+2
-2
lines changed

python/ql/test/library-tests/essa/ssa-compute/UseUse.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class UseTest extends InlineExpectationsTest {
1919
)
2020
or
2121
exists(EssaVariable var | AdjacentUses::firstUse(var, nodeTo) |
22-
prevLoc = var.getDefinition().getLocation() and
22+
prevLoc = var.getLocation() and
2323
name = var.getName() and
2424
tag = "def-use"
2525
)
@@ -31,7 +31,7 @@ class UseTest extends InlineExpectationsTest {
3131
or
3232
exists(EssaVariable var | AdjacentUses::firstUse(var, _) |
3333
value = var.getName() and
34-
location = var.getDefinition().getLocation() and
34+
location = var.getLocation() and
3535
element = var.getName() and
3636
name = var.getName() and
3737
tag = "def"

0 commit comments

Comments
 (0)