[PR #1] Always use code-blocks

This commit is contained in:
Guillaume Polaert 2017-05-02 12:08:52 +02:00
parent 5e434473b0
commit 1698b6cb34
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}