Skip to content

Commit

Permalink
Remove unused condition (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
koxudaxi authored Feb 5, 2021
1 parent ff6122b commit a016a08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions datamodel_code_generator/model/pydantic/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,5 @@ def __init__(
self.extra_template_data['config'] = Config.parse_obj(config_parameters)

for field in fields:
field_value = field.field
if field_value and field_value != '...':
if field.field:
self.imports.append(IMPORT_FIELD)

0 comments on commit a016a08

Please sign in to comment.