diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-22 22:05:36 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-22 22:48:00 +0200 |
commit | dc21bf1ff42d80645677abcd3c51a52098843c9e (patch) | |
tree | 02262fb929c40f750b0b366406635460364c8ded /_pytest/data | |
parent | 00382056e72401db918ee253195c41d7dae6476c (diff) | |
download | wee-slack-dc21bf1ff42d80645677abcd3c51a52098843c9e.tar.gz |
Use if/else instead of a dict in formatted_name
I mainly did this because I'm going to call formatted_name with
style=default before team is set, and that didn't work as it was because
the other styles used the team.
For SlackDMChannel I moved colorizing into the branch for the sidebar
style because colors should never be included in the other styles.
formatted_name is never called with enable_color=True and another style
than sidebar, so the behavior doesn't change.
Diffstat (limited to '_pytest/data')
0 files changed, 0 insertions, 0 deletions