diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
commit | 7489e4682331202b9c7d863c0898eb83d7b12c2b (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /util/stream | |
parent | a5950576e397b1909261050b8c7da16db58f10b1 (diff) | |
download | ydb-7489e4682331202b9c7d863c0898eb83d7b12c2b.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream')
-rw-r--r-- | util/stream/zlib.cpp | 10 | ||||
-rw-r--r-- | util/stream/zlib.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/util/stream/zlib.cpp b/util/stream/zlib.cpp index 196d155b99..60f4e9439f 100644 --- a/util/stream/zlib.cpp +++ b/util/stream/zlib.cpp @@ -188,15 +188,15 @@ namespace { } class TZLibCompress::TImpl: public TAdditionalStorage<TImpl>, private TZLibCommon { - static inline ZLib::StreamType Type(ZLib::StreamType type) { + static inline ZLib::StreamType Type(ZLib::StreamType type) { if (type == ZLib::Auto) { return ZLib::ZLib; } - if (type >= ZLib::Invalid) { - ythrow TZLibError() << "invalid compression type: " << static_cast<unsigned long>(type); - } - + if (type >= ZLib::Invalid) { + ythrow TZLibError() << "invalid compression type: " << static_cast<unsigned long>(type); + } + return type; } diff --git a/util/stream/zlib.h b/util/stream/zlib.h index 2d55bd4999..e7de7c81b7 100644 --- a/util/stream/zlib.h +++ b/util/stream/zlib.h @@ -28,8 +28,8 @@ namespace ZLib { Auto = 0, /**< Auto detect format. Can be used for decompression only. */ ZLib = 1, GZip = 2, - Raw = 3, - Invalid = 4 + Raw = 3, + Invalid = 4 }; enum { |