..Equals(String.Empty) is also not good

This commit is contained in:
UbitUmarov
2022-03-14 20:11:54 +00:00
parent 3dcb77c7b7
commit 56c497adf5
10 changed files with 11 additions and 11 deletions

View File

@@ -72,7 +72,7 @@ namespace OpenSim.OfflineIM
//
// We tried, but this doesn't exist. We can't proceed.
//
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
m_Database = LoadPlugin<IOfflineIMData>(dllName, new Object[] { connString, realm });

View File

@@ -79,7 +79,7 @@ namespace OpenSim.Services.AssetService
//
// We tried, but this doesn't exist. We can't proceed.
//
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
m_Database = LoadPlugin<IAssetDataPlugin>(dllName);

View File

@@ -77,7 +77,7 @@ namespace OpenSim.Services.AssetService
//
// We tried, but this doesn't exist. We can't proceed.
//
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
m_Database = LoadPlugin<IXAssetDataPlugin>(dllName);

View File

@@ -69,7 +69,7 @@ namespace OpenSim.Services.AuthorizationService
//
// We tried, but this doesn't exist. We can't proceed.
//
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
m_Database = LoadPlugin<IAssetDataPlugin>(dllName);

View File

@@ -72,7 +72,7 @@ namespace OpenSim.Services.AvatarService
//
// We tried, but this doesn't exist. We can't proceed.
//
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
m_Database = LoadPlugin<IAvatarData>(dllName, new Object[] { connString, realm });

View File

@@ -138,10 +138,10 @@ namespace OpenSim.Services.FSAssetService
}
// No databse connection found in either config
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
if (connectionString.Equals(String.Empty))
if (string.IsNullOrEmpty(connectionString))
throw new Exception("Missing database connection string");
// Create Storage Provider

View File

@@ -72,7 +72,7 @@ namespace OpenSim.Services.GridService
//
// We tried, but this doesn't exist. We can't proceed.
//
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
m_Database = LoadPlugin<IRegionData>(dllName, new Object[] { connString, realm });

View File

@@ -72,7 +72,7 @@ namespace OpenSim.Services.HypergridService
//
// We tried, but this doesn't exist. We can't proceed.
//
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
m_Database = LoadPlugin<IHGTravelingData>(dllName, new Object[] { connString, realm });

View File

@@ -72,7 +72,7 @@ namespace OpenSim.Services.PresenceService
//
// We tried, but this doesn't exist. We can't proceed.
//
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
m_Database = LoadPlugin<IPresenceData>(dllName, new Object[] { connString, realm });

View File

@@ -71,7 +71,7 @@ namespace OpenSim.Services.UserAccountService
//
// We tried, but this doesn't exist. We can't proceed.
//
if (dllName.Equals(String.Empty))
if (string.IsNullOrEmpty(dllName))
throw new Exception("No StorageProvider configured");
m_Database = LoadPlugin<IGridUserData>(dllName, new Object[] { connString, realm });