cosmetics

This commit is contained in:
UbitUmarov
2022-01-13 13:59:41 +00:00
parent c5f5fa0d2e
commit 6595e3ae26
10 changed files with 13 additions and 13 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;