Fix format_stringarray()

This commit is contained in:
JeremyStar™ 2024-05-10 21:02:43 +02:00
parent b78ae9dd30
commit 61da7fb367
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -89,7 +89,7 @@ func format_stringarray(array: Array[String], item_before: String = "", item_aft
return "" return ""
elif array.size() == 1: elif array.size() == 1:
logger.warn("Unable to format a string with a size of 1") logger.warn("Unable to format a string with a size of 1")
return array[0] return item_before + array[0] + item_after
for item in array: for item in array:
if output == "": output = item_before + item + item_after if output == "": output = item_before + item + item_after