aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream
diff options
context:
space:
mode:
authorsomov <somov@yandex-team.ru>2022-02-10 16:45:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:49 +0300
commit7489e4682331202b9c7d863c0898eb83d7b12c2b (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /util/stream
parenta5950576e397b1909261050b8c7da16db58f10b1 (diff)
downloadydb-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.cpp10
-rw-r--r--util/stream/zlib.h4
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 {