diff --git a/Core/Core.cs b/Core/Core.cs index b7b9a4d..81b714b 100644 --- a/Core/Core.cs +++ b/Core/Core.cs @@ -6,7 +6,6 @@ using System.IO; using System.Linq; using System.Reflection; using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; namespace Kruzya.TelegramBot.Core { diff --git a/Core/Core.csproj b/Core/Core.csproj index 5c6bde4..08a657a 100644 --- a/Core/Core.csproj +++ b/Core/Core.csproj @@ -8,15 +8,15 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + + + + diff --git a/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs b/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs index ad3f5f3..fe48b90 100644 --- a/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs +++ b/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs @@ -67,7 +67,7 @@ namespace West.Entertainment.Handler.Fun Message!.Text, Message!.Text!.ToLower()); _logger.LogDebug("AnimationFileId: {FileId}", animationFileId); - if (animationFileId.IsNullOrEmpty()) + if (string.IsNullOrEmpty(animationFileId)) { _logger.LogDebug("AnimationFileId is empty. Ignoring."); return false; diff --git a/modules/UserGroupTag/Handler.cs b/modules/UserGroupTag/Handler.cs index 889cf9f..97e1e3b 100644 --- a/modules/UserGroupTag/Handler.cs +++ b/modules/UserGroupTag/Handler.cs @@ -33,7 +33,7 @@ namespace UserGroupTag { // var groupName = group.Text; var repliedMessage = RawUpdate.Message!.ReplyToMessage; - if (repliedMessage == null || repliedMessage.From!.IsBot || !(await Bot.CanPunishMember(Chat, From)) || groupName.IsNullOrEmpty()) + if (repliedMessage == null || repliedMessage.From!.IsBot || !(await Bot.CanPunishMember(Chat, From)) || string.IsNullOrEmpty(groupName)) { return; }