optimize the processing zlib.

Signed-off-by: Jack <jack.wgm@gmail.com>
code style.

Signed-off-by: Jack <jack.wgm@gmail.com>