mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +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:
@@ -307,7 +307,7 @@ namespace OpenSim.Region.DataSnapshot
|
||||
XmlNode regiondata = requestedSnap.CreateNode(XmlNodeType.Element, "regiondata", "");
|
||||
try
|
||||
{
|
||||
if (regionName == null || regionName == "")
|
||||
if (string.IsNullOrEmpty(regionName))
|
||||
{
|
||||
XmlNode timerblock = requestedSnap.CreateNode(XmlNodeType.Element, "expire", "");
|
||||
timerblock.InnerText = m_period.ToString();
|
||||
|
||||
Reference in New Issue
Block a user