Skip to content

Commit

Permalink
add explicit null check for older target frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspimentel committed Jan 10, 2024
1 parent 47835f2 commit 3e1938e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracer/src/Datadog.Trace/Sampling/SamplingRulesFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal static class SamplingRulesFormat

public static bool IsValid(string? format, out string normalized)
{
if (string.IsNullOrWhiteSpace(format))
if (format is null || string.IsNullOrWhiteSpace(format))
{
// default value if not specified
normalized = Regex;
Expand Down

0 comments on commit 3e1938e

Please sign in to comment.