Skip to content

Commit

Permalink
fix: pylint
Browse files Browse the repository at this point in the history
Signed-off-by: Sarapulov Vasilii <[email protected]>
  • Loading branch information
Sarapulov-Vas committed Aug 1, 2024
1 parent 356116d commit 8f35445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripts/global_variables_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def get_array_declaration(code_unit):
f'{array_type[:array_type.index("[")]} {str(code_unit.getLabel())}' + \
array_type[array_type.index("["):]
if string_array is not None and\
string_array.count("0x0") == math.prod(int(i) for i in re.findall(r'\[(\d*)\]', array_type)):
string_array.count("0x0") ==\
math.prod(int(i) for i in re.findall(r'\[(\d*)\]', array_type)):
variable_declaration_string += " = {0}"
elif string_array is not None:
variable_declaration_string += " = " + string_array
Expand Down

0 comments on commit 8f35445

Please sign in to comment.