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;
+1 -2
View File
@@ -1,5 +1,4 @@
using System;
using System.Linq;
using System.Linq;
using System.Threading.Tasks;
using BotFramework;
using BotFramework.Attributes;
+1 -3
View File
@@ -1,6 +1,4 @@
#nullable enable
using System.Threading.Tasks;
using System.Threading.Tasks;
using BotFramework.Attributes;
using BotFramework.Enums;
using Kruzya.TelegramBot.Core.Data;