Skip to content

Commit b051555

Browse files
committed
fix: extra parameter
1 parent 314525a commit b051555

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static boolean doesRuleMatch(Rule rule) {
104104
return true; // Return true if all selectors match
105105
}
106106

107-
private static boolean matchOperator(String value, String operator, List<String> matches, String match) {
107+
private static boolean matchOperator(String value, String operator, List<String> matches) {
108108
// not sure if these are nullable, but the semantics make sense
109109
// and that will save us from a NPE
110110
if (value == null || matches == null || operator == null) {
@@ -149,7 +149,7 @@ static boolean selectorMatch(String origin, List<String> matches, String operato
149149
if (value == null) {
150150
return false;
151151
}
152-
return matchOperator(value, operator, matches, key);
152+
return matchOperator(value, operator, matches);
153153
case "process_arguments":
154154
if (key == null) {
155155
return false;
@@ -162,7 +162,7 @@ static boolean selectorMatch(String origin, List<String> matches, String operato
162162
return false;
163163
}
164164
String value = System.getProperty(key.substring(2));
165-
return matchOperator(value, operator, matches, key);
165+
return matchOperator(value, operator, matches);
166166
case "tags":
167167
// TODO: Support this down the line (Must define the source of "tags" first)
168168
return false;

0 commit comments

Comments
 (0)