Skip to content

Commit

Permalink
remove unnecessary else branch
Browse files Browse the repository at this point in the history
Co-authored-by: George Zubrienko <[email protected]>
  • Loading branch information
PJCampi and george-zubrienko authored Apr 24, 2024
1 parent 7c64269 commit f6c7e73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dataclasses_json/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ def _decode_type(type_, value, infer_missing):
return _decode_dataclass(type_, value, infer_missing)
if _is_supported_generic(type_):
return _decode_generic(type_, value, infer_missing)
else:
return _support_extended_types(type_, value)
return _support_extended_types(type_, value)


def _support_extended_types(field_type, field_value):
Expand Down

0 comments on commit f6c7e73

Please sign in to comment.