diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-24 10:53:33 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-24 10:53:33 +0100 |
commit | 7c69a61c7db9d75d5bee3529533295bba37779ab (patch) | |
tree | feca9f8f33b068dff9528f2fd4b03062b9d5545a /tutorials/vFWDT | |
parent | b8c5101a920275687fdab980048cb4dae5aa902d (diff) |
Do not use `len(SEQUENCE)` to determine if a sequence is empty
Change-Id: Iad6832e7b9d468bc8ce73cb728bb983941f7a61c
Issue-ID: INT-1482
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'tutorials/vFWDT')
-rwxr-xr-x | tutorials/vFWDT/workflow/workflow.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tutorials/vFWDT/workflow/workflow.py b/tutorials/vFWDT/workflow/workflow.py index 60545695..8703be73 100755 --- a/tutorials/vFWDT/workflow/workflow.py +++ b/tutorials/vFWDT/workflow/workflow.py @@ -188,7 +188,7 @@ def _get_aai_rel_link_data(data, related_to, search_key=None, match_dict=None): response.append( {"link": link, "d_value": dval} ) - if len(response) == 0: + if response: response.append( {"link": None, "d_value": None} ) |