sql-machine-learning/pysqlflow

Duplicated code in CompoundMessage.__repr__

Yancey1989 opened this issue · 2 comments

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

Can I work on this issue?

@Yancey1989 I have solved this issue, please review