summaryrefslogtreecommitdiffstats
path: root/util/stream/zlib.cpp
diff options
context:
space:
mode:
authorvmordovin <[email protected]>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:14 +0300
commit6a1e535429145ec1ecfbc5f1efd3c95323261fb5 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/stream/zlib.cpp
parent7c7f9bbcf57e15838d15afa94b31d8254b5d7776 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
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 6f6322c1233..60f4e9439f0 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;