Skip to content

Commit

Permalink
Remove some analyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Aug 29, 2023
1 parent 80b57a8 commit 620a7a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GUI/efcpt/HostedServices/ScaffoldHostedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
scaffoldOptions.ConfigFile.FullName);
DisplayService.MarkupLine();

#pragma warning disable S2589 // Boolean expressions should not be gratuitous
#pragma warning disable S2583 // Conditionally executed code should be reachable
if (commandOptions.UseT4 && Constants.Version > 6)
{
var t4Result = T4Helper.DropT4Templates(commandOptions.T4TemplatePath ?? commandOptions.ProjectPath, Constants.CodeGeneration);
Expand All @@ -77,6 +79,8 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
DisplayService.MarkupLine(t4Result, Color.Default);
}
}
#pragma warning restore S2583 // Conditionally executed code should be reachable
#pragma warning restore S2589 // Boolean expressions should not be gratuitous

sw = Stopwatch.StartNew();
var result = DisplayService.Wait(
Expand Down

0 comments on commit 620a7a0

Please sign in to comment.