Fixed compiler warnings.
This commit is contained in:
@@ -18,7 +18,7 @@ namespace HermesSocketServer.Requests
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public async Task<RequestResult> Grant(Channel channel, IDictionary<string, object> data)
|
||||
public Task<RequestResult> Grant(Channel channel, IDictionary<string, object> data)
|
||||
{
|
||||
IEnumerable<VoiceDetails> voices = _voices.Get().Select(v => new VoiceDetails()
|
||||
{
|
||||
@@ -27,7 +27,7 @@ namespace HermesSocketServer.Requests
|
||||
});
|
||||
|
||||
_logger.Information($"Fetched all TTS voices for channel [channel: {channel.Id}]");
|
||||
return RequestResult.Successful(voices, notifyClientsOnAccount: false);
|
||||
return Task.FromResult(RequestResult.Successful(voices, notifyClientsOnAccount: false));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user