[lint] Remove unnecessary lambdas

Lambdas of the form `lambda x: func(x)` are redundant.
This commit is contained in:
Hornwitser
2018-06-22 15:59:12 +02:00
committed by Rapptz
parent 119c5a0618
commit 3679819c53
3 changed files with 3 additions and 3 deletions

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