Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
KubaZ2 committed Aug 11, 2024
1 parent 958dc5d commit f17b8ec
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Backend/Manager/Options.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Frozen;
using System.ComponentModel.DataAnnotations;
using System.Runtime.InteropServices;

Expand Down
2 changes: 1 addition & 1 deletion Bot/Sharp/Backend/BackendProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public async Task<string> CommonAsync(Architecture platform, Stream assembly, st
continue;

var content = response.Content;

var message = content.Headers.ContentLength.GetValueOrDefault() is 0
? $"The backend returned {(int)response.StatusCode}."
: $"The backend returned {(int)response.StatusCode} {await content.ReadAsStringAsync()}.";
Expand Down
2 changes: 1 addition & 1 deletion Bot/Sharp/RateLimits/RateLimiter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public bool TryAcquire()
}
}
}

private readonly object _lock = new();

public ValueTask<bool> TryAcquireAsync(ulong id)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

Expand All @@ -20,7 +19,7 @@ public ValueTask HandleResultAsync(IExecutionResult result, TContext context, Ga
return default;

var resultMessage = failResult.Message;

var interaction = context.Interaction;

if (failResult is IExceptionResult exceptionResult)
Expand Down

0 comments on commit f17b8ec

Please sign in to comment.