Skip to content

Commit

Permalink
🤖 Apply analyzer suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 committed Mar 20, 2024
1 parent 6777c35 commit 0e366e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CubicBot.Telegram/Commands/ConsentNotNeeded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public static void CountSex(CommandContext commandContext)
replyToMemberOrUserData.SexReceived++;
}

private static Task DoActionAsync(CommandContext commandContext, string actionMiddle, string actionEnd, string selfEmoji, CancellationToken cancellationToken = default)
private static Task<Message> DoActionAsync(CommandContext commandContext, string actionMiddle, string actionEnd, string selfEmoji, CancellationToken cancellationToken = default)
{
if (commandContext.ReplyToMessageContext is MessageContext replyToMessageContext)
{
Expand Down
2 changes: 1 addition & 1 deletion CubicBot.Telegram/UpdateHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public UpdateHandler(string botUsername, Config config, Data data)
}
else
{
_commands = Array.Empty<CubicBotCommand>();
_commands = [];
}

if (config.EnableStats)
Expand Down

0 comments on commit 0e366e1

Please sign in to comment.