Skip to content

Commit 79197c1

Browse files
committed
Switching to flush as suggested in review
1 parent b6a80db commit 79197c1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

dd-java-agent/src/main/java/datadog/trace/bootstrap/JsonBuffer.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,7 @@ public byte[] toByteArray() {
143143
return cachedBytes;
144144
}
145145

146-
try {
147-
writer.flush();
148-
} catch (IOException e) {
149-
// ignore
150-
}
146+
flush();
151147

152148
cachedBytes = bytesOut.toByteArray();
153149
this.cachedBytes = cachedBytes;

0 commit comments

Comments
 (0)