mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
refactor: replace verbose checks with String.IsNullOrEmpty where applicable.
Thanks to Kira for this patch from http://opensimulator.org/mantis/view.php?id=6845
This commit is contained in:
@@ -298,7 +298,7 @@ namespace OpenSim.Services.HypergridService
|
||||
UserAccount user = m_Cache.GetUser(it.CreatorId);
|
||||
|
||||
// Adjust the creator data
|
||||
if (user != null && it != null && (it.CreatorData == null || it.CreatorData == string.Empty))
|
||||
if (user != null && it != null && string.IsNullOrEmpty(it.CreatorData))
|
||||
it.CreatorData = m_HomeURL + ";" + user.FirstName + " " + user.LastName;
|
||||
}
|
||||
return it;
|
||||
|
||||
Reference in New Issue
Block a user