mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
immediately returning the string.Join operation instead of checking if the list has members
This commit is contained in:
@@ -5169,20 +5169,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
public LSL_String llList2CSV(LSL_List src)
|
||||
{
|
||||
|
||||
string ret = String.Empty;
|
||||
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if (src.Data.Length > 0)
|
||||
{
|
||||
ret = string.Join(", ",
|
||||
(new List<object>(src.Data)).ConvertAll<string>(o =>
|
||||
{
|
||||
return o.ToString();
|
||||
}).ToArray());
|
||||
}
|
||||
|
||||
return ret;
|
||||
return string.Join(", ",
|
||||
(new List<object>(src.Data)).ConvertAll<string>(o =>
|
||||
{
|
||||
return o.ToString();
|
||||
}).ToArray());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user