Skip to content

Commit

Permalink
Remove unnecessary async/await
Browse files Browse the repository at this point in the history
  • Loading branch information
austins committed Sep 9, 2023
1 parent bf47241 commit a003dcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,4 @@ dotnet_diagnostic.SYSLIB1006.severity = none
dotnet_diagnostic.CA1303.severity = none
dotnet_diagnostic.CA1031.severity = none
dotnet_diagnostic.CA1062.severity = none
dotnet_diagnostic.AsyncFixer01.severity = none
dotnet_diagnostic.CA1032.severity = none
4 changes: 2 additions & 2 deletions DiscordTranslationBot/Handlers/RegisterCommandsHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public async Task Handle(ReadyNotification notification, CancellationToken cance
/// </summary>
/// <param name="notification">The notification.</param>
/// <param name="cancellationToken">The cancellation token.</param>
public async Task Handle(JoinedGuildNotification notification, CancellationToken cancellationToken)
public Task Handle(JoinedGuildNotification notification, CancellationToken cancellationToken)
{
await RegisterCommandsAsync(new[] { notification.Guild }, cancellationToken);
return RegisterCommandsAsync(new[] { notification.Guild }, cancellationToken);
}

/// <summary>
Expand Down

0 comments on commit a003dcb

Please sign in to comment.