Skip to content

Commit

Permalink
fix: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
XieJiSS committed Dec 14, 2024
1 parent a601132 commit 7efe87a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions datamodel_code_generator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,6 @@ def get_header_and_first_line(csv_file: IO[str]) -> Dict[str, Any]:
if isinstance(input_, Path)
else input_
)
else:
# InputFileType.GraphQL is also a member of RAW_DATA_TYPES but it is already handled separately,
# so there's nothing left to be handled
raise Error('Invalid file format')
except: # noqa
raise Error('Invalid file format')

Expand Down

0 comments on commit 7efe87a

Please sign in to comment.