Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoseph committed Jul 23, 2024
1 parent 90de7b8 commit d01b914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tools/dotnet-monitor/StartupHook/StartupHookApplicator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ public async Task<bool> ApplyAsync(string tfm, string fileName, CancellationToke
return true;
}

#nullable disable
if (_endpointInfo.RuntimeVersion?.Major < 8)
{
#nullable disable
_logger.StartupHookInstructions(_endpointInfo.ProcessId, fileInfo.Name, fileInfo.PhysicalPath);
#nullable restore
return false;
}
#nullable restore

return await ApplyUsingDiagnosticClientAsync(fileInfo, client, token);
}
Expand Down
1 change: 1 addition & 0 deletions src/Tools/dotnet-monitor/ValidationResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ internal static class ValidationResultExtensions
{
public static bool IsSuccess([NotNullWhen(false)] this ValidationResult? result)
{
// ValidationResult.Success is null, and a null value indicates there are no validation errors.
return result == ValidationResult.Success;
}
}
Expand Down

0 comments on commit d01b914

Please sign in to comment.