Skip to content

Commit 3c25682

Browse files
committed
Update to reflect API
Vector35/binaryninja-api#1438
1 parent 98a8165 commit 3c25682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def gather_defs(il, defs):
3434

3535
def llil_at(bv, addr):
3636
funcs = bv.get_functions_containing(addr)
37-
if funcs is None:
37+
if not funcs:
3838
return None
3939

4040
return funcs[0].get_low_level_il_at(addr)
@@ -51,4 +51,4 @@ def is_call(bv, addr):
5151
def get_func_containing(bv, addr):
5252
""" Finds the function, if any, containing the given address """
5353
funcs = bv.get_functions_containing(addr)
54-
return funcs[0] if funcs is not None else None
54+
return funcs[0] if funcs else None

0 commit comments

Comments
 (0)