immediately returning the string.Join operation instead of checking if the list has members
parent
d188272462
commit
582a256646
|
@ -5169,22 +5169,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public LSL_String llList2CSV(LSL_List src)
|
public LSL_String llList2CSV(LSL_List src)
|
||||||
{
|
{
|
||||||
|
|
||||||
string ret = String.Empty;
|
|
||||||
|
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
||||||
if (src.Data.Length > 0)
|
return string.Join(", ",
|
||||||
{
|
|
||||||
ret = string.Join(", ",
|
|
||||||
(new List<object>(src.Data)).ConvertAll<string>(o =>
|
(new List<object>(src.Data)).ConvertAll<string>(o =>
|
||||||
{
|
{
|
||||||
return o.ToString();
|
return o.ToString();
|
||||||
}).ToArray());
|
}).ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The supplied string is scanned for commas
|
/// The supplied string is scanned for commas
|
||||||
/// and converted into a list. Commas are only
|
/// and converted into a list. Commas are only
|
||||||
|
|
Loading…
Reference in New Issue