Skip to content

Commit 148165b

Browse files
alinasmirnovaAndreyAkinshin
authored andcommitted
Removed an unnecessary check
1 parent b43d280 commit 148165b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BenchmarkDotNet.Annotations/Attributes/TargetedAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public string Target
2020
set => Targets = string.IsNullOrEmpty(value) ? new string[0] : value.Split(','); // , is for backward compat
2121
}
2222

23-
public bool Match(MethodInfo method) => Targets == null || Targets.Length == 0 || Targets.Contains(method.Name);
23+
public bool Match(MethodInfo method) => Targets.Length == 0 || Targets.Contains(method.Name);
2424
}
2525
}

0 commit comments

Comments
 (0)