Skip to content

Commit

Permalink
fix(actions): oop that doesn't belong there
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Jan 3, 2024
1 parent 62051ca commit 078c9da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,4 @@ jobs:
uses: actions/[email protected]
with:
name: DisCatSharp
path: ./artifacts/
- name: Restore Tools Packages
run: dotnet restore --no-cache -f -v minimal DisCatSharp.Tools/DisCatSharp.Tools.sln
- name: Build tools
run: dotnet build -c Release -v minimal --no-restore DisCatSharp.Tools/DisCatSharp.Tools.sln
path: ./artifacts/
9 changes: 5 additions & 4 deletions DisCatSharp/Net/Rest/RestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ public Task ExecuteFormRequestAsync(BaseRestRequest request, bool targetDebug =
/// <param name="targetDebug">Enables a possible breakpoint in the rest client for debugging purposes.</param>
private async Task ExecuteFormRequestAsync(BaseRestRequest request, RateLimitBucket? bucket, TaskCompletionSource<bool>? ratelimitTcs, bool targetDebug = false)
{
if (this._disposed)
return;
ObjectDisposedException.ThrowIf(this._disposed, this);

if (targetDebug)
Console.WriteLine("Meow");

HttpResponseMessage? res = default;

Expand Down Expand Up @@ -328,8 +330,7 @@ private async Task ExecuteFormRequestAsync(BaseRestRequest request, RateLimitBuc
var response = new RestResponse();
try
{
if (this._disposed)
return;
ObjectDisposedException.ThrowIf(this._disposed, this);

res = await this.HttpClient.SendAsync(req, HttpCompletionOption.ResponseContentRead, CancellationToken.None).ConfigureAwait(false);

Expand Down

0 comments on commit 078c9da

Please sign in to comment.