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

@@ -134,7 +134,7 @@ namespace OpenSim.Framework
}
set
{
if ((value == null) || (value != null && value == string.Empty))
if (string.IsNullOrEmpty(value))
{
m_creatorData = string.Empty;
return;

View File

@@ -358,7 +358,7 @@ namespace OSHttpServer.Parser
{
if (ch == '\r' || ch == '\n')
{
if (m_curHeaderName == string.Empty)
if (m_curHeaderName.Length == 0)
throw new BadRequestException("Missing header on line " + currentLine);
if (currentPos - startPos > 8190)

View File

@@ -132,7 +132,7 @@ namespace OpenSim.Framework
}
set
{
if ((value == null) || (value != null && value == string.Empty))
if (string.IsNullOrEmpty(value))
{
_creatorData = string.Empty;
return;