diff options
author | Daniel Bengtsson <dbengt@redhat.com> | 2021-06-23 12:50:12 +0200 |
---|---|---|
committer | Daniel Bengtsson <dbengt@redhat.com> | 2021-06-23 12:50:12 +0200 |
commit | 50356dca820270314e594b4d76814cd147dae0fe (patch) | |
tree | d7b93325566518eb391e90fd02c20213e75bceec /oslo_db | |
parent | 3400d2df482c01ba1ea0686c8922ccca73fcdd57 (diff) | |
download | oslo-db-50356dca820270314e594b4d76814cd147dae0fe.tar.gz |
Remove the useless else.
We return the value in the if condition, so the else is not necessary.
Change-Id: I1de4b7f7f7ea3634e3a2d49704f689205f746085
Diffstat (limited to 'oslo_db')
-rw-r--r-- | oslo_db/sqlalchemy/types.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/oslo_db/sqlalchemy/types.py b/oslo_db/sqlalchemy/types.py index 08b1f2b..14ea94c 100644 --- a/oslo_db/sqlalchemy/types.py +++ b/oslo_db/sqlalchemy/types.py @@ -106,8 +106,7 @@ class SoftDeleteInteger(TypeDecorator): """Return the binding parameter.""" if value is None: return None - else: - return int(value) + return int(value) class String(_String): |