diff options
author | 2019-11-05 10:29:54 +0700 | |
---|---|---|
committer | 2019-11-05 10:29:54 +0700 | |
commit | 7d10fcafa8302b137733d4cf84ffc15fe1a8f219 (patch) | |
tree | 626384411afcfac66c27abf4bd42753b3df02709 | |
parent | un-monstrosify code (diff) |
remove unneccessary else
-rw-r--r-- | bot/cogs/moderation/modlog.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py index 53ea4ebcb..4fbe39d7f 100644 --- a/bot/cogs/moderation/modlog.py +++ b/bot/cogs/moderation/modlog.py @@ -661,10 +661,8 @@ class ModLog(Cog, name="ModLog"): new = (f"{words[0] if index > 0 else ''}" " ... " f"{words[-1] if index < len(diff_groups) - 1 else ''}") - else: - new = sub - _before = _before.replace(sub, new) - _after = _after.replace(sub, new) + _before = _before.replace(sub, new) + _after = _after.replace(sub, new) response = ( f"**Author:** {author} (`{author.id}`)\n" |