mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix ruff linter error: RET505 Unnecessary elif after return statement
This commit is contained in:
parent
4118ce6015
commit
89305e5587
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ class MongoStorage(BaseStorage):
|
|||
def resolve_state(self, value: StateType) -> Optional[str]:
|
||||
if value is None:
|
||||
return None
|
||||
elif isinstance(value, State):
|
||||
if isinstance(value, State):
|
||||
return value.state
|
||||
return str(value)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue