Removed ParamList null checks

This commit is contained in:
RogueException
2016-08-21 21:47:32 -03:00
parent 40da0241c8
commit f6d8659a2e
4 changed files with 13 additions and 24 deletions

View File

@@ -57,6 +57,6 @@ namespace Discord.Commands
=> new ParseResult(null, null, result.Error, result.ErrorReason);
public override string ToString() => IsSuccess ? "Success" : $"{Error}: {ErrorReason}";
private string DebuggerDisplay => IsSuccess ? $"Success ({ArgValues.Count}{(ParamValues != null ? $" +{ParamValues.Count} Values" : "")})" : $"{Error}: {ErrorReason}";
private string DebuggerDisplay => IsSuccess ? $"Success ({ArgValues.Count}{(ParamValues.Count > 0 ? $" +{ParamValues.Count} Values" : "")})" : $"{Error}: {ErrorReason}";
}
}