Update OmegaLeo.HelperLib.Web/Controllers/HomeController.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2025-12-23 16:34:06 +00:00
committed by GitHub
parent a8a27dfd07
commit 611133776a
@@ -307,16 +307,14 @@ public class HomeController : Controller
throw; throw;
} }
Dictionary<string, List<Changelog.Models.Changelog>> changelog =
new Dictionary<string, List<Changelog.Models.Changelog>>();
var changelogMarkdown = string.Empty; var changelogMarkdown = string.Empty;
if (System.IO.File.Exists(changelogPath)) if (System.IO.File.Exists(changelogPath))
{ {
try try
{ {
changelog = ChangelogTool.ExtractChangelog(assembly); ChangelogTool.ExtractChangelog(assembly);
changelogMarkdown = ChangelogTool.GetMarkdown(assembly); changelogMarkdown = ChangelogTool.GetMarkdown(assembly);
_logger.LogInformation("Parsed changelog with {Count} versions", changelog.Count); _logger.LogInformation("Parsed changelog for {Assembly}", assembly.GetName().Name);
} }
catch (Exception ex) catch (Exception ex)
{ {