diff options
| author | nsofya <[email protected]> | 2022-02-10 16:49:52 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:52 +0300 | 
| commit | 3f5911a056d3dbc4bfd724740244a3a9c11575ef (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/streams/lz | |
| parent | 2ea6d2c7415473747379b1c65468241b431057ad (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/streams/lz')
| -rw-r--r-- | library/cpp/streams/lz/lz.cpp | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/library/cpp/streams/lz/lz.cpp b/library/cpp/streams/lz/lz.cpp index 2053e1a4f77..b65bb3ed965 100644 --- a/library/cpp/streams/lz/lz.cpp +++ b/library/cpp/streams/lz/lz.cpp @@ -120,16 +120,16 @@ private:          this->Save(compressed, &header);          using TPart = IOutputStream::TPart; -        if (ptr) {  -            const TPart parts[] = {  -                TPart(tmp, sizeof(tmp)),  -                TPart(ptr, len),  -            };  - -            Slave_->Write(parts, sizeof(parts) / sizeof(*parts));  -        } else {  -            Slave_->Write(tmp, sizeof(tmp));  -        }  +        if (ptr) { +            const TPart parts[] = { +                TPart(tmp, sizeof(tmp)), +                TPart(ptr, len), +            }; + +            Slave_->Write(parts, sizeof(parts) / sizeof(*parts)); +        } else { +            Slave_->Write(tmp, sizeof(tmp)); +        }      }  private: | 
