Skip to content

Commit a0e580c

Browse files
committed
black
1 parent 2306559 commit a0e580c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cogs/modmail.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,9 +1489,7 @@ async def repair(self, ctx):
14891489
)
14901490
if len(users) == 1:
14911491
user = users.pop()
1492-
name = format_channel_name(
1493-
self.bot, user, exclude_channel=ctx.channel
1494-
)
1492+
name = format_channel_name(self.bot, user, exclude_channel=ctx.channel)
14951493
recipient = self.bot.get_user(user.id)
14961494
if user.id in self.bot.threads.cache:
14971495
thread = self.bot.threads.cache[user.id]

core/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ def format_channel_name(bot, author, exclude_channel=None, force_null=False):
355355
name = "null"
356356

357357
name = new_name = (
358-
"".join(l for l in name if l not in string.punctuation and l.isprintable()) or "null"
358+
"".join(l for l in name if l not in string.punctuation and l.isprintable())
359+
or "null"
359360
) + f"-{author.discriminator}"
360361

361362
counter = 1

0 commit comments

Comments
 (0)