mautrix_telegram/commands/telegram/account.py
Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed. Open
Open
async def session(evt: CommandEvent) -> EventID:
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.