From 1057ee012a8efbd706a0cf1a32895b72a5bad46b Mon Sep 17 00:00:00 2001 From: RogueException Date: Tue, 11 Oct 2016 23:45:27 -0300 Subject: [PATCH] Made a few methods static --- src/Discord.Net.Core/API/DiscordRestApiClient.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Discord.Net.Core/API/DiscordRestApiClient.cs b/src/Discord.Net.Core/API/DiscordRestApiClient.cs index e2fcbf9af..93dbabef4 100644 --- a/src/Discord.Net.Core/API/DiscordRestApiClient.cs +++ b/src/Discord.Net.Core/API/DiscordRestApiClient.cs @@ -1065,16 +1065,16 @@ namespace Discord.API } } - private string GetEndpoint(Expression> endpointExpr) + private static string GetEndpoint(Expression> endpointExpr) { return endpointExpr.Compile()(); } - private string GetBucketId(BucketIds ids, Expression> endpointExpr, string callingMethod) + private static string GetBucketId(BucketIds ids, Expression> endpointExpr, string callingMethod) { return _bucketIdGenerators.GetOrAdd(callingMethod, x => CreateBucketId(endpointExpr))(ids); } - private Func CreateBucketId(Expression> endpoint) + private static Func CreateBucketId(Expression> endpoint) { try {