diff options
author | arkady-e1ppa <arkady-e1ppa@yandex-team.com> | 2024-04-15 13:35:00 +0300 |
---|---|---|
committer | arkady-e1ppa <arkady-e1ppa@yandex-team.com> | 2024-04-15 13:45:34 +0300 |
commit | 308a5871e2748bda7994119f19a90eb82aea851f (patch) | |
tree | d9cdafe9f259b3d796e3c6b8d4c8d1eb8ad9cdab | |
parent | 3920f7b2a13f36e695cbac980f817cc036c9f2c7 (diff) | |
download | ydb-308a5871e2748bda7994119f19a90eb82aea851f.tar.gz |
Cosmetics from a bunch of issues
a52f0a614608d50ea9a6bb53163a952002d8e473
-rw-r--r-- | yt/yt/core/misc/error.cpp | 4 | ||||
-rw-r--r-- | yt/yt/core/misc/intrusive_mpsc_stack-inl.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/yt/yt/core/misc/error.cpp b/yt/yt/core/misc/error.cpp index e84b9da94b4..0395a0166c5 100644 --- a/yt/yt/core/misc/error.cpp +++ b/yt/yt/core/misc/error.cpp @@ -355,6 +355,8 @@ private: //////////////////////////////////////////////////////////////////////////////// +namespace { + bool IsWhitelisted(const TError& error, const THashSet<TStringBuf>& attributeWhitelist) { for (const auto& key : error.Attributes().ListKeys()) { @@ -398,6 +400,8 @@ std::vector<TError>& ApplyWhitelist(std::vector<TError>& errors, const THashSet< return errors; } +} // namespace + //////////////////////////////////////////////////////////////////////////////// TError::TErrorOr() = default; diff --git a/yt/yt/core/misc/intrusive_mpsc_stack-inl.h b/yt/yt/core/misc/intrusive_mpsc_stack-inl.h index e4c553587e3..dcd56827845 100644 --- a/yt/yt/core/misc/intrusive_mpsc_stack-inl.h +++ b/yt/yt/core/misc/intrusive_mpsc_stack-inl.h @@ -37,7 +37,7 @@ TSimpleIntrusiveList<T, Tag> TIntrusiveMPSCStack<T, Tag>::PopAll() noexcept TSimpleIntrusiveList<T, Tag> list; - while (head != nullptr) { + while (head) { auto tmp = head; head = head->Next; tmp->Next = nullptr; |