Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -97,9 +97,7 @@ namespace Server.Commands.Generic
for ( int i = args.Length - 1; i >= 0; --i )
{
ExtensionInfo extInfo = null;
if ( !ExtensionInfo.Table.TryGetValue( args[i], out extInfo ) )
if ( !ExtensionInfo.Table.TryGetValue( args[i], out ExtensionInfo extInfo ) )
continue;
if ( extInfo.IsFixedSize && i != ( size - extInfo.Size - 1 ) )

View file

@ -566,4 +566,4 @@ namespace Server.Commands.Generic
return (IConditional) Activator.CreateInstance( conditionalType );
}
}
}
}

View file

@ -246,4 +246,4 @@ namespace Server.Commands.Generic
return (IComparer) Activator.CreateInstance( comparerType );
}
}
}
}

View file

@ -169,4 +169,4 @@ namespace Server.Commands.Generic
return (IComparer) Activator.CreateInstance( comparerType );
}
}
}
}

View file

@ -282,8 +282,7 @@ namespace Server.Commands.Generic
{
if ( e.Length >= 1 )
{
BaseCommand command = null;
m_Commands.TryGetValue( e.GetString( 0 ), out command );
m_Commands.TryGetValue( e.GetString( 0 ), out BaseCommand command );
if ( command == null )
{
@ -341,4 +340,4 @@ namespace Server.Commands.Generic
}
}
}
}
}

View file

@ -36,8 +36,7 @@ namespace Server.Commands.Generic
}
else
{
BaseCommand command = null;
Commands.TryGetValue( e.GetString( 1 ), out command );
Commands.TryGetValue( e.GetString( 1 ), out BaseCommand command );
if ( command == null )
{

View file

@ -35,8 +35,7 @@ namespace Server.Commands.Generic
}
else
{
BaseCommand command = null;
Commands.TryGetValue( e.GetString( 1 ), out command );
Commands.TryGetValue( e.GetString( 1 ), out BaseCommand command );
if ( command == null )
{
@ -98,4 +97,4 @@ namespace Server.Commands.Generic
}
}
}
}
}

View file

@ -26,9 +26,7 @@ namespace Server.Commands.Generic
public void Redirect( CommandEventArgs e )
{
BaseCommand command = null;
Commands.TryGetValue( e.Command, out command );
Commands.TryGetValue( e.Command, out BaseCommand command );
if ( command == null )
e.Mobile.SendMessage( "That is either an invalid command name or one that does not support this modifier." );
@ -93,4 +91,4 @@ namespace Server.Commands.Generic
RunCommand( from, targeted, command, args );
}
}
}
}