[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

@ -110,7 +110,7 @@ class GroupCall:
lookup = {u.id: u for u in self.call.channel.recipients}
me = self.call.channel.me
lookup[me.id] = me
self.ringing = list(filter(None, map(lambda i: lookup.get(i), kwargs.get('ringing', []))))
self.ringing = list(filter(None, map(lookup.get, kwargs.get('ringing', []))))
def _update_voice_state(self, data):
user_id = int(data['user_id'])