File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
firebase-common/src/main/java/com/google/firebase/heartbeatinfo Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -102,16 +102,14 @@ public Task<String> getHeartBeatsHeader() {
102
102
JSONObject output = new JSONObject ();
103
103
output .put ("heartbeats" , array );
104
104
output .put ("version" , "2" );
105
- try (ByteArrayOutputStream out = new ByteArrayOutputStream ()) {
106
- try (Base64OutputStream b64os =
107
- new Base64OutputStream (
108
- out , Base64 .URL_SAFE | Base64 .NO_PADDING | Base64 .NO_WRAP )) {
109
- try (GZIPOutputStream gzip = new GZIPOutputStream (b64os )) {
110
- gzip .write (output .toString ().getBytes ("UTF-8" ));
111
- }
112
- }
113
- return out .toString ("UTF-8" );
105
+ ByteArrayOutputStream out = new ByteArrayOutputStream ();
106
+ try (Base64OutputStream b64os =
107
+ new Base64OutputStream (
108
+ out , Base64 .URL_SAFE | Base64 .NO_PADDING | Base64 .NO_WRAP );
109
+ GZIPOutputStream gzip = new GZIPOutputStream (b64os ); ) {
110
+ gzip .write (output .toString ().getBytes ("UTF-8" ));
114
111
}
112
+ return out .toString ("UTF-8" );
115
113
}
116
114
});
117
115
}
You can’t perform that action at this time.
0 commit comments