From cce0ce401eaf210195d6bb47d7609aa88bdeba8e Mon Sep 17 00:00:00 2001 From: mctaylors Date: Mon, 18 Mar 2024 00:35:46 +0300 Subject: [PATCH] Expand ignore part of code Signed-off-by: mctaylors --- src/Commands/AboutCommandGroup.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Commands/AboutCommandGroup.cs b/src/Commands/AboutCommandGroup.cs index 6c4fa00..2b649ce 100644 --- a/src/Commands/AboutCommandGroup.cs +++ b/src/Commands/AboutCommandGroup.cs @@ -101,11 +101,12 @@ public class AboutCommandGroup : CommandGroup .WithDescription(builder.ToString()) .WithColour(ColorsList.Cyan) .WithImageUrl("https://i.ibb.co/fS6wZhh/octobot-banner.png") + // ThisAssembly.Git.IsDirty already returns true or false. + // ReSharper disable HeuristicUnreachableCode .WithFooter(string.Format(Messages.Version, ThisAssembly.Git.IsDirty ? $"{ThisAssembly.Git.Branch}-{ThisAssembly.Git.Commit}-dirty" - // ReSharper disable once HeuristicUnreachableCode - // ^^^ while being reachable, however : $"{ThisAssembly.Git.Branch}-{ThisAssembly.Git.Commit}")) + // ReSharper restore HeuristicUnreachableCode .Build(); var repositoryButton = new ButtonComponent(