Skip to content

Commit b48a1ed

Browse files
authored
fix patch coverage (#9)
1 parent bc59e66 commit b48a1ed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

fastapi_code_generator/__main__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ def main(
7272
with open(input_file, encoding=encoding) as f:
7373
input_text = f.read()
7474

75-
if model_file:
76-
model_path = Path(model_file)
77-
else:
78-
model_path = MODEL_PATH
75+
model_path = Path(model_file) if model_file else MODEL_PATH
7976

8077
return generate_code(
8178
input_name,

0 commit comments

Comments
 (0)