remove unnecessary condition

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2022-03-29 16:37:51 +08:00
parent 6c6f10265d
commit d73d0a327a

View File

@ -88,8 +88,7 @@ def preprocess_c_source_code(source, *classes):
if has_instance is False:
has_instance = True
yield pair_start, start_line
if instance:
yield instance.span()[0], instance
yield instance.span()[0], instance
if has_instance:
yield start, end_line