Browse Source

Made a few methods static

tags/1.0-rc
RogueException 8 years ago
parent
commit
1057ee012a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Discord.Net.Core/API/DiscordRestApiClient.cs

+ 3
- 3
src/Discord.Net.Core/API/DiscordRestApiClient.cs View File

@@ -1065,16 +1065,16 @@ namespace Discord.API
} }
} }


private string GetEndpoint(Expression<Func<string>> endpointExpr)
private static string GetEndpoint(Expression<Func<string>> endpointExpr)
{ {
return endpointExpr.Compile()(); return endpointExpr.Compile()();
} }
private string GetBucketId(BucketIds ids, Expression<Func<string>> endpointExpr, string callingMethod)
private static string GetBucketId(BucketIds ids, Expression<Func<string>> endpointExpr, string callingMethod)
{ {
return _bucketIdGenerators.GetOrAdd(callingMethod, x => CreateBucketId(endpointExpr))(ids); return _bucketIdGenerators.GetOrAdd(callingMethod, x => CreateBucketId(endpointExpr))(ids);
} }


private Func<BucketIds, string> CreateBucketId(Expression<Func<string>> endpoint)
private static Func<BucketIds, string> CreateBucketId(Expression<Func<string>> endpoint)
{ {
try try
{ {


Loading…
Cancel
Save