aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/streams/bzip2/bzip2.cpp
diff options
context:
space:
mode:
authorvmordovin <vmordovin@yandex-team.ru>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:14 +0300
commit6a1e535429145ec1ecfbc5f1efd3c95323261fb5 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/streams/bzip2/bzip2.cpp
parent7c7f9bbcf57e15838d15afa94b31d8254b5d7776 (diff)
downloadydb-6a1e535429145ec1ecfbc5f1efd3c95323261fb5.tar.gz
Restoring authorship annotation for <vmordovin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/streams/bzip2/bzip2.cpp')
-rw-r--r--library/cpp/streams/bzip2/bzip2.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/streams/bzip2/bzip2.cpp b/library/cpp/streams/bzip2/bzip2.cpp
index d2c02e3bae..bccc5c6807 100644
--- a/library/cpp/streams/bzip2/bzip2.cpp
+++ b/library/cpp/streams/bzip2/bzip2.cpp
@@ -182,23 +182,23 @@ TBZipCompress::~TBZipCompress() {
}
void TBZipCompress::DoWrite(const void* buf, size_t size) {
- if (!Impl_) {
+ if (!Impl_) {
ythrow TBZipCompressError() << "can not write to finished bzip stream";
- }
-
+ }
+
Impl_->Write(buf, size);
}
void TBZipCompress::DoFlush() {
if (Impl_) {
- Impl_->Flush();
- }
+ Impl_->Flush();
+ }
}
void TBZipCompress::DoFinish() {
- THolder<TImpl> impl(Impl_.Release());
-
+ THolder<TImpl> impl(Impl_.Release());
+
if (impl) {
- impl->Finish();
- }
+ impl->Finish();
+ }
}