diff options
author | sabdenovch <sabdenovch@yandex-team.com> | 2023-08-18 18:49:24 +0300 |
---|---|---|
committer | sabdenovch <sabdenovch@yandex-team.com> | 2023-08-18 20:49:51 +0300 |
commit | 5759e66192228df77ba77f8d5dd9c3dd4a3663ce (patch) | |
tree | 9deff409dd467d064c6db3b61c9e0d38a8368adc | |
parent | 4ec2d0800c4d84d6dc306fb71461bbfd396aea3a (diff) | |
download | ydb-5759e66192228df77ba77f8d5dd9c3dd4a3663ce.tar.gz |
Minor cosmetic changes
Minor cosmetic changes
space after for
space after if
-rw-r--r-- | library/cpp/yt/user_job_statistics/user_job_statistics.cpp | 2 | ||||
-rw-r--r-- | yt/yt/core/compression/lzma.cpp | 4 | ||||
-rw-r--r-- | yt/yt/core/misc/checksum.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/yt/user_job_statistics/user_job_statistics.cpp b/library/cpp/yt/user_job_statistics/user_job_statistics.cpp index b7fd71503d..56ab88ee9d 100644 --- a/library/cpp/yt/user_job_statistics/user_job_statistics.cpp +++ b/library/cpp/yt/user_job_statistics/user_job_statistics.cpp @@ -35,7 +35,7 @@ void TUserJobStatsProxy::Init(IOutputStream * usingStream) { usingStream = CorrectHandle(JobStatisticsHandle); } - if(usingStream == nullptr && GetEnv("YT_JOB_ID").empty()) { + if (usingStream == nullptr && GetEnv("YT_JOB_ID").empty()) { usingStream = &Cerr; } diff --git a/yt/yt/core/compression/lzma.cpp b/yt/yt/core/compression/lzma.cpp index 6b4dde6725..3918215005 100644 --- a/yt/yt/core/compression/lzma.cpp +++ b/yt/yt/core/compression/lzma.cpp @@ -159,7 +159,7 @@ void LzmaDecompress(TSource* source, TBlob* output) { auto result = LzmaDec_Allocate(&handle, propsBuffer, LZMA_PROPS_SIZE, &Alloc); - if(result != SZ_OK) { + if (result != SZ_OK) { THROW_ERROR_EXCEPTION("Lzma decompression failed: LzmaDec_Allocate returned an error") << TErrorAttribute("error", result); } @@ -189,7 +189,7 @@ void LzmaDecompress(TSource* source, TBlob* output) &bufferSize, // It's input buffer size before call, read byte count afterwards. LZMA_FINISH_ANY, &status); - if(result != SZ_OK) { + if (result != SZ_OK) { THROW_ERROR_EXCEPTION("Lzma decompression failed: LzmaDec_DecodeToDic returned an error") << TErrorAttribute("error", result); } diff --git a/yt/yt/core/misc/checksum.cpp b/yt/yt/core/misc/checksum.cpp index 2d1951e51c..520b0b03a8 100644 --- a/yt/yt/core/misc/checksum.cpp +++ b/yt/yt/core/misc/checksum.cpp @@ -671,7 +671,7 @@ ui64 Crc(const void* buf, size_t buflen, ui64 crcinit) const ui64* ptr = (const ui64 *) ptrChar; - for(; buflen >= 8; buflen -= 8) { + for (; buflen >= 8; buflen -= 8) { ui64 val = crcinit ^ *ptr++; crcinit = |