if
expression used can be simplified PYL-R1719143 r.append({
144 'id': p.id,
145 'name': p.name,
146 'used': True if p.id == auth_service_id else False,147 })
148 return r
149
The if
expression used here can be simplified to increase the code readability.
Example:
value = True if arg else False
This can be simplified into:
value = bool(arg)