Skip to content

Commit

Permalink
fix: merge ifs statements
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolopez committed Aug 27, 2024
1 parent 6d870d9 commit 32a3f52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deepaas/cmd/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,8 @@ def _get_file_args(fields_in):
"""
file_fields = []
for k, v in fields_in.items():
if type(v) is fields.Field:
if v.metadata.get("type", "") == "file":
file_fields.append(k)
if (type(v) is fields.Field) and (v.metadata.get("type", "") == "file"):
file_fields.append(k)

return file_fields

Expand Down

0 comments on commit 32a3f52

Please sign in to comment.