Fix ruff linter error: RET505 Unnecessary elif after return statement

This commit is contained in:
Rishat Fayzullin 2024-03-12 11:50:10 +03:00
parent 4118ce6015
commit 89305e5587

View file

@ -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)