ajenti / ajenti

if expression used can be simplified PYL-R1719
Anti-pattern
Minor
6 months ago3 years old
The if expression can be replaced with 'test'
143            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