From c73946495f16ce1179eeca40a58c173f43b77e21 Mon Sep 17 00:00:00 2001 From: HelpfulStranger999 Date: Mon, 9 Apr 2018 15:28:37 -0500 Subject: [PATCH] Refactors an unused parameter in CommandService#Search --- src/Discord.Net.Commands/CommandService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index c880dd454..19d2a0dfd 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -317,8 +317,8 @@ namespace Discord.Commands //Execution public SearchResult Search(ICommandContext context, int argPos) - => Search(context, context.Message.Content.Substring(argPos)); - public SearchResult Search(ICommandContext context, string input) + => Search(context.Message.Content.Substring(argPos)); + public SearchResult Search(string input) { string searchInput = _caseSensitive ? input : input.ToLowerInvariant(); var matches = _map.GetCommands(searchInput).OrderByDescending(x => x.Command.Priority).ToImmutableArray(); @@ -335,7 +335,7 @@ namespace Discord.Commands { services = services ?? EmptyServiceProvider.Instance; - var searchResult = Search(context, input); + var searchResult = Search(input); if (!searchResult.IsSuccess) return searchResult;