mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -50,7 +50,7 @@ namespace OpenSim.Server.Handlers.Grid
|
||||
string gridService = serverConfig.GetString("LocalServiceModule",
|
||||
String.Empty);
|
||||
|
||||
if (gridService == String.Empty)
|
||||
if (gridService.Length == 0)
|
||||
throw new Exception("No LocalServiceModule in config file");
|
||||
|
||||
Object[] args = new Object[] { config };
|
||||
|
||||
@@ -202,7 +202,7 @@ namespace OpenSim.Server.Handlers.Grid
|
||||
if (rinfo != null)
|
||||
result = m_GridService.RegisterRegion(scopeID, rinfo);
|
||||
|
||||
if (result == String.Empty)
|
||||
if (result.Length == 0)
|
||||
return SuccessResult();
|
||||
else
|
||||
return FailureResult(result);
|
||||
|
||||
Reference in New Issue
Block a user