Code cleanup

This commit is contained in:
Andriy
2023-07-29 15:03:45 +03:00
parent 5e4183acfa
commit a24332370d
36 changed files with 46 additions and 111 deletions
@@ -34,7 +34,7 @@ public partial class BanStickerSet
public async Task<bool> PreCommand(ParamParser.StickerSet.Param? stickerSetParam = null)
{
if (stickerSetParam != null && !stickerSetParam.IsValid)
if (stickerSetParam is { IsValid: false })
{
await Reply("Неверный набор стикеров.");
return false;