mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -1304,7 +1304,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
foreach(string st in stlines)
|
||||
{
|
||||
string stline = st.Trim();
|
||||
if(stline == "")
|
||||
if(stline.Length == 0)
|
||||
continue;
|
||||
|
||||
// strip 'at' off the front of line
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
public string xmrSetParcelMusicURLGroup (string newurl)
|
||||
{
|
||||
string groupname = m_ScriptEngine.Config.GetString ("SetParcelMusicURLGroup", "");
|
||||
if (groupname == "") throw new ApplicationException ("no SetParcelMusicURLGroup config param set");
|
||||
if (groupname.Length == 0) throw new ApplicationException ("no SetParcelMusicURLGroup config param set");
|
||||
|
||||
IGroupsModule igm = World.RequestModuleInterface<IGroupsModule> ();
|
||||
if (igm == null) throw new ApplicationException ("no GroupsModule loaded");
|
||||
|
||||
Reference in New Issue
Block a user