Skip to content

Commit 9b1534a

Browse files
committed
simplify condition
1 parent 06de71b commit 9b1534a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent/DebuggerTransformer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,10 +706,9 @@ private ProbeDefinition selectReferenceDefinition(
706706
LogProbe logProbe = (LogProbe) definition;
707707
captureSnapshot = captureSnapshot | logProbe.isCaptureSnapshot();
708708
capture = mergeCapture(capture, logProbe.getCapture());
709-
probeCondition =
710-
probeCondition == null && logProbe.getProbeCondition() != null
711-
? logProbe.getProbeCondition()
712-
: probeCondition;
709+
if (probeCondition == null) {
710+
probeCondition = logProbe.getProbeCondition();
711+
}
713712
}
714713
if (definition.getEvaluateAt() == MethodLocation.ENTRY
715714
|| definition.getEvaluateAt() == MethodLocation.DEFAULT) {

0 commit comments

Comments
 (0)