Skip to content

Commit

Permalink
com/codec_vhdl_package: use 'not parameter_list' instead of 'paramete…
Browse files Browse the repository at this point in the history
…r_list == []'
  • Loading branch information
umarcor committed Dec 2, 2021
1 parent 96a24b3 commit 79e0616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vunit/com/codec_vhdl_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _generate_msg_type_encoders(self): # pylint: disable=too-many-locals
else:
encoding_list.append(f"encode({element.subtype_indication.code!s}'({value!s}))")

if parameter_list == []:
if not parameter_list:
parameter_part = ""
alias_signature = value + "[return string];"
else:
Expand Down

0 comments on commit 79e0616

Please sign in to comment.