update var join function to use empty string (#2270)

This commit is contained in:
Tom Gotsman 2023-12-06 16:51:13 -08:00 committed by GitHub
parent 7164b91d7b
commit d6374ca3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1324,7 +1324,7 @@ class Var:
raise TypeError(f"Cannot join non-list var {self._var_full_name}.")
if other is None:
other = Var.create_safe("")
other = Var.create_safe('""')
if isinstance(other, str):
other = Var.create_safe(json.dumps(other))
else: