Skip to content

Commit

Permalink
Removed an unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
alinasmirnova authored and AndreyAkinshin committed Oct 3, 2023
1 parent b43d280 commit 148165b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public string Target
set => Targets = string.IsNullOrEmpty(value) ? new string[0] : value.Split(','); // , is for backward compat
}

public bool Match(MethodInfo method) => Targets == null || Targets.Length == 0 || Targets.Contains(method.Name);
public bool Match(MethodInfo method) => Targets.Length == 0 || Targets.Contains(method.Name);
}
}

0 comments on commit 148165b

Please sign in to comment.