Skip to content

Duplicated code in CompoundMessage.__repr__ #97

Open
@Yancey0623

Description

@Yancey0623

The if and else branch have the same code:

for r in self._messages:
if isinstance(r[0], Rows):
all_string = '\n'.join([all_string, r[0].__repr__()])
else:
all_string = '\n'.join([all_string, r[0].__repr__()])
return all_string

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions