aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/zlib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'util/stream/zlib.cpp')
-rw-r--r--util/stream/zlib.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/stream/zlib.cpp b/util/stream/zlib.cpp
index 6f6322c123..60f4e9439f 100644
--- a/util/stream/zlib.cpp
+++ b/util/stream/zlib.cpp
@@ -356,25 +356,25 @@ TZLibCompress::~TZLibCompress() {
}
void TZLibCompress::DoWrite(const void* buf, size_t size) {
- if (!Impl_) {
+ if (!Impl_) {
ythrow TZLibCompressorError() << "can not write to finished zlib stream";
- }
-
+ }
+
Impl_->Write(buf, size);
}
void TZLibCompress::DoFlush() {
if (Impl_) {
- Impl_->Flush();
- }
+ Impl_->Flush();
+ }
}
void TZLibCompress::DoFinish() {
- THolder<TImpl> impl(Impl_.Release());
-
+ THolder<TImpl> impl(Impl_.Release());
+
if (impl) {
- impl->Finish();
- }
+ impl->Finish();
+ }
}
TBufferedZLibDecompress::~TBufferedZLibDecompress() = default;