Fixes implicit ternary expressions

This commit is contained in:
Kamron Batman 2018-09-14 14:56:48 -07:00
parent c85b0a740c
commit ff26dfa375
345 changed files with 1905 additions and 2336 deletions

View file

@ -213,22 +213,21 @@ namespace Server
if ( m_Major > o.m_Major )
return 1;
else if ( m_Major < o.m_Major )
if ( m_Major < o.m_Major )
return -1;
else if ( m_Minor > o.m_Minor )
if ( m_Minor > o.m_Minor )
return 1;
else if ( m_Minor < o.m_Minor )
if ( m_Minor < o.m_Minor )
return -1;
else if ( m_Revision > o.m_Revision )
if ( m_Revision > o.m_Revision )
return 1;
else if ( m_Revision < o.m_Revision )
if ( m_Revision < o.m_Revision )
return -1;
else if ( m_Patch > o.m_Patch )
if ( m_Patch > o.m_Patch )
return 1;
else if ( m_Patch < o.m_Patch )
if ( m_Patch < o.m_Patch )
return -1;
else
return 0;
return 0;
}
public static bool IsNull( object x )
@ -240,9 +239,9 @@ namespace Server
{
if ( IsNull( x ) && IsNull( y ) )
return 0;
else if ( IsNull( x ) )
if ( IsNull( x ) )
return -1;
else if ( IsNull( y ) )
if ( IsNull( y ) )
return 1;
ClientVersion a = x as ClientVersion;
@ -258,9 +257,9 @@ namespace Server
{
if ( IsNull( a ) && IsNull( b ) )
return 0;
else if ( IsNull( a ) )
if ( IsNull( a ) )
return -1;
else if ( IsNull( b ) )
if ( IsNull( b ) )
return 1;
return a.CompareTo( b );