[lint] Remove unnecessary lambdas

Lambdas of the form `lambda x: func(x)` are redundant.
This commit is contained in:
Hornwitser
2018-08-22 21:43:52 -04:00
committed by Rapptz
parent 119c5a0618
commit 3679819c53
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ async def _default_help_command(ctx, *commands : str):
pages = await bot.formatter.format_help_for(ctx, command)
if bot.pm_help is None:
characters = sum(map(lambda l: len(l), pages))
characters = sum(map(len, pages))
# modify destination based on length of pages.
if characters > 1000:
destination = ctx.message.author