Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions fastapi_code_generator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ def main(
with open(input_file, encoding=encoding) as f:
input_text = f.read()

if model_file:
model_path = Path(model_file)
else:
model_path = MODEL_PATH
model_path = Path(model_file) if model_file else MODEL_PATH

return generate_code(
input_name,
Expand Down