Skip to content

Commit 0767840

Browse files
jongallowayCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 5e459f8 commit 0767840

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DotNetMcp/DotNetCliTools.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public sealed class DotNetCliTools
1414

1515
public DotNetCliTools(ILogger<DotNetCliTools> logger)
1616
{
17-
_logger = logger;
17+
// DI guarantees logger is never null
18+
_logger = logger!;
1819
}
1920
[McpServerTool, Description("List all installed .NET templates with their metadata using the Template Engine. Provides structured information about available project templates.")]
2021
public async Task<string> DotnetTemplateList()

DotNetMcp/TemplateEngineHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private static async Task<IEnumerable<ITemplateInfo>> GetTemplatesCachedAsync(IL
4040
{
4141
if (_templatesCache == null || DateTime.UtcNow > _cacheExpiry)
4242
{
43-
logger?.LogDebug("Template cache miss - loading templates from Template Engine");
43+
logger?.LogDebug("Template cache miss - loading templates from template engine");
4444
var engineEnvironmentSettings = new EngineEnvironmentSettings(
4545
new DefaultTemplateEngineHost("dotnet-mcp", "1.0.0"),
4646
virtualizeSettings: true);

0 commit comments

Comments
 (0)