Style cleanup
This commit is contained in:
@@ -80,7 +80,7 @@ namespace Discord.Commands.Builders
|
||||
{
|
||||
for (int i = 0; i < aliases.Length; i++)
|
||||
{
|
||||
var alias = aliases[i] ?? "";
|
||||
string alias = aliases[i] ?? "";
|
||||
if (!_aliases.Contains(alias))
|
||||
_aliases.Add(alias);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Discord.Commands.Builders
|
||||
{
|
||||
for (int i = 0; i < aliases.Length; i++)
|
||||
{
|
||||
var alias = aliases[i] ?? "";
|
||||
string alias = aliases[i] ?? "";
|
||||
if (!_aliases.Contains(alias))
|
||||
_aliases.Add(alias);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Discord.Commands
|
||||
info.GetCustomAttribute<DontAutoLoadAttribute>() == null;
|
||||
}
|
||||
|
||||
List<TypeInfo> result = new List<TypeInfo>();
|
||||
var result = new List<TypeInfo>();
|
||||
|
||||
foreach (var typeInfo in assembly.DefinedTypes)
|
||||
{
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace Discord.Commands
|
||||
for (int position = 0; position < Parameters.Count; position++)
|
||||
{
|
||||
var parameter = Parameters[position];
|
||||
var argument = args[position];
|
||||
object argument = args[position];
|
||||
var result = await parameter.CheckPreconditionsAsync(context, argument, services).ConfigureAwait(false);
|
||||
if (!result.IsSuccess)
|
||||
return ExecuteResult.FromError(result);
|
||||
@@ -232,7 +232,7 @@ namespace Discord.Commands
|
||||
argCount--;
|
||||
|
||||
int i = 0;
|
||||
foreach (var arg in argList)
|
||||
foreach (object arg in argList)
|
||||
{
|
||||
if (i == argCount)
|
||||
throw new InvalidOperationException("Command was invoked with too many parameters");
|
||||
|
||||
Reference in New Issue
Block a user