Skip to content
Prev Previous commit
Next Next commit
[ModelicaSystem] check for dict content using len() == 0
  • Loading branch information
syntron committed Dec 29, 2025
commit 052f61e3369530f1f967d2c7781b77eefa54ae1b
2 changes: 1 addition & 1 deletion OMPython/ModelicaSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ def _process_override_data(
override_var: dict[str, str],
override_sim: dict[str, str],
) -> None:
if not override_var and not override_sim:
if len(override_var) == 0 and len(override_sim) == 0:
return

override_content = ""
Expand Down