mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -301,7 +301,7 @@ namespace OpenSim.Capabilities.Handlers
|
||||
|
||||
string rawEnd = rangeValues[1];
|
||||
|
||||
if (rawEnd == "")
|
||||
if (rawEnd.Length == 0)
|
||||
{
|
||||
end = -1;
|
||||
return true;
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace OpenSim.Capabilities.Handlers
|
||||
|
||||
string assetService = serverConfig.GetString("AssetService", String.Empty);
|
||||
|
||||
if (assetService == String.Empty)
|
||||
if (assetService.Length == 0)
|
||||
throw new Exception("No AssetService in config file");
|
||||
|
||||
Object[] args = new Object[] { config };
|
||||
|
||||
Reference in New Issue
Block a user