mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -64,7 +64,7 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures
|
||||
return;
|
||||
|
||||
m_URL = config.GetString("URL", String.Empty);
|
||||
if (m_URL == String.Empty)
|
||||
if (m_URL.Length == 0)
|
||||
return;
|
||||
|
||||
m_enabled = true;
|
||||
@@ -107,7 +107,7 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures
|
||||
|
||||
public WearableCacheItem[] Get(UUID id)
|
||||
{
|
||||
if (m_URL == String.Empty)
|
||||
if (m_URL.Length == 0)
|
||||
return null;
|
||||
|
||||
using (RestClient rc = new RestClient(m_URL))
|
||||
@@ -188,7 +188,7 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures
|
||||
|
||||
public void Store(UUID agentId, WearableCacheItem[] data)
|
||||
{
|
||||
if (m_URL == String.Empty)
|
||||
if (m_URL.Length == 0)
|
||||
return;
|
||||
|
||||
int numberWears = 0;
|
||||
|
||||
Reference in New Issue
Block a user