aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shirayuki Nekomata <[email protected]>2019-11-05 10:29:54 +0700
committerGravatar Shirayuki Nekomata <[email protected]>2019-11-05 10:29:54 +0700
commit7d10fcafa8302b137733d4cf84ffc15fe1a8f219 (patch)
tree626384411afcfac66c27abf4bd42753b3df02709
parentun-monstrosify code (diff)
remove unneccessary else
-rw-r--r--bot/cogs/moderation/modlog.py6
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"