[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

@ -366,7 +366,7 @@ class Message:
def channel_mentions(self):
if self.guild is None:
return []
it = filter(None, map(lambda m: self.guild.get_channel(m), self.raw_channel_mentions))
it = filter(None, map(self.guild.get_channel, self.raw_channel_mentions))
return utils._unique(it)
@utils.cached_slot_property('_cs_clean_content')