[PR #1] Always use code-blocks
This commit is contained in:
parent
5e434473b0
commit
1698b6cb34
|
@ -67,7 +67,9 @@ public class DDTracer implements io.opentracing.Tracer {
|
|||
* @param trace a list of the spans related to the same trace
|
||||
*/
|
||||
public void write(List<Span> trace) {
|
||||
if (trace.size() == 0) return;
|
||||
if (trace.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
if (this.sampler.sample((DDSpan) trace.get(0))) {
|
||||
this.writer.write(trace);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue