1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-30 02:59:54 +03:00

Fix inspection warnings (#208)

Signed-off-by: neroduckale <100025711+neroduckale@users.noreply.github.com>
This commit is contained in:
neroduckale 2023-12-06 00:24:55 +05:00 committed by GitHub
parent 4c50bdaff7
commit bcd1db8c8e
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 25 deletions

View file

@ -105,7 +105,7 @@ public class SettingsCommandGroup : CommandGroup
return await SendSettingsListAsync(cfg, bot, page, CancellationToken);
}
private async Task<Result> SendSettingsListAsync(JsonNode cfg, IUser bot, int page,
private Task<Result> SendSettingsListAsync(JsonNode cfg, IUser bot, int page,
CancellationToken ct = default)
{
var description = new StringBuilder();
@ -124,7 +124,7 @@ public class SettingsCommandGroup : CommandGroup
.WithColour(ColorsList.Red)
.Build();
return await _feedback.SendContextualEmbedResultAsync(errorEmbed, ct);
return _feedback.SendContextualEmbedResultAsync(errorEmbed, ct);
}
footer.Append($"{Messages.Page} {page}/{totalPages} ");
@ -149,7 +149,7 @@ public class SettingsCommandGroup : CommandGroup
.WithFooter(footer.ToString())
.Build();
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
return _feedback.SendContextualEmbedResultAsync(embed, ct);
}
/// <summary>