mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
cosmetics
This commit is contained in:
@@ -267,7 +267,7 @@ namespace OpenSim.Services.Connectors
|
||||
uri,
|
||||
reqString,
|
||||
m_Auth);
|
||||
if (reply == null || (reply != null && reply == string.Empty))
|
||||
if (string.IsNullOrEmpty(reply))
|
||||
{
|
||||
m_log.DebugFormat("[PRESENCE CONNECTOR]: GetAgent received null or empty reply");
|
||||
return null;
|
||||
@@ -324,7 +324,7 @@ namespace OpenSim.Services.Connectors
|
||||
uri,
|
||||
reqString,
|
||||
m_Auth);
|
||||
if (reply == null || (reply != null && reply == string.Empty))
|
||||
if (string.IsNullOrEmpty(reply))
|
||||
{
|
||||
m_log.DebugFormat("[PRESENCE CONNECTOR]: GetAgents received null or empty reply");
|
||||
return null;
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace OpenSim.Services.Connectors
|
||||
uri,
|
||||
reqString,
|
||||
m_Auth);
|
||||
if (reply == null || (reply != null && reply == string.Empty))
|
||||
if (string.IsNullOrEmpty(reply))
|
||||
{
|
||||
m_log.DebugFormat("[ACCOUNT CONNECTOR]: GetUserAccounts received null or empty reply");
|
||||
return null;
|
||||
@@ -240,7 +240,7 @@ namespace OpenSim.Services.Connectors
|
||||
uri,
|
||||
reqString,
|
||||
m_Auth);
|
||||
if (reply == null || (reply != null && reply == string.Empty))
|
||||
if (string.IsNullOrEmpty(reply))
|
||||
{
|
||||
m_log.DebugFormat("[ACCOUNT CONNECTOR]: GetMultiUserAccounts received null or empty reply");
|
||||
return null;
|
||||
@@ -364,7 +364,7 @@ namespace OpenSim.Services.Connectors
|
||||
uri,
|
||||
reqString,
|
||||
m_Auth);
|
||||
if (reply == null || (reply != null && reply == string.Empty))
|
||||
if (string.IsNullOrEmpty(reply))
|
||||
{
|
||||
m_log.DebugFormat("[ACCOUNT CONNECTOR]: GetUserAccount received null or empty reply");
|
||||
return null;
|
||||
|
||||
@@ -266,7 +266,7 @@ namespace OpenSim.Services.LLLoginService
|
||||
//
|
||||
string token = m_AuthenticationService.Authenticate(account.PrincipalID, passwd, 30);
|
||||
UUID secureSession = UUID.Zero;
|
||||
if ((token == string.Empty) || (token != string.Empty && !UUID.TryParse(token, out secureSession)))
|
||||
if ((token == string.Empty) || (!UUID.TryParse(token, out secureSession)))
|
||||
{
|
||||
m_log.InfoFormat("[LLOGIN SERVICE]: SetLevel failed, reason: authentication failed");
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user