Browse Source

Cosmetics from a bunch of issues
a52f0a614608d50ea9a6bb53163a952002d8e473

arkady-e1ppa 11 months ago
parent
commit
308a5871e2
2 changed files with 5 additions and 1 deletions
  1. 4 0
      yt/yt/core/misc/error.cpp
  2. 1 1
      yt/yt/core/misc/intrusive_mpsc_stack-inl.h

+ 4 - 0
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;

+ 1 - 1
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;