dev: fixed build warnings

This commit is contained in:
Kwoth
2024-10-03 02:05:55 +00:00
parent 5d76a15dc0
commit bdad9cc17a
5 changed files with 12 additions and 12 deletions

View File

@@ -8,8 +8,6 @@ public class GrpcApiService : INService, IReadyExecutor
{
private Server? _app;
private static readonly bool _isEnabled = true;
private readonly DiscordSocketClient _client;
private readonly OtherSvc _other;
private readonly ExprsSvc _exprs;
@@ -30,11 +28,11 @@ public class GrpcApiService : INService, IReadyExecutor
_creds = creds;
}
public async Task OnReadyAsync()
public Task OnReadyAsync()
{
var creds = _creds.GetCreds();
if (creds.GrpcApi is null || creds.GrpcApi.Enabled)
return;
return Task.CompletedTask;
try
{
@@ -65,5 +63,7 @@ public class GrpcApiService : INService, IReadyExecutor
{
_app?.ShutdownAsync().GetAwaiter().GetResult();
}
return Task.CompletedTask;
}
}