Remove redundant None check

pull/1929/head
OB 2 years ago committed by Disconnect3d
parent 0451daebcc
commit c37030633a

@ -192,7 +192,8 @@ def telescope(address=None, count=telescope_lines, to_string=False, reverse=Fals
collapse_buffer.clear()
bp = None
if print_framepointer_offset and pwndbg.gdblib.regs.frame is not None:
if print_framepointer_offset:
# If pwndbg.gdblib.regs.frame is None, indexing regs will return None
bp = pwndbg.gdblib.regs[pwndbg.gdblib.regs.frame]
for i, addr in enumerate(range(start, stop, step)):

Loading…
Cancel
Save