summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpavook <[email protected]>2024-07-08 23:35:40 +0300
committerpavook <[email protected]>2024-07-08 23:47:35 +0300
commita8a87265545e8b66fcdb50d3b3d7f5b5786b17aa (patch)
tree2a470fa973f67bd01beb204594716b9f9d05ba3c
parentc92cb9d3a19331916f0c274d80e67f02a62caa9b (diff)
Fix codestyle
b1e6ccedf00376f8b81fcad6db2e34af1d5a12ca
-rw-r--r--yt/yt/core/misc/statistics.cpp4
-rw-r--r--yt/yt/core/misc/statistics.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/yt/yt/core/misc/statistics.cpp b/yt/yt/core/misc/statistics.cpp
index b9d89288d90..2116d010133 100644
--- a/yt/yt/core/misc/statistics.cpp
+++ b/yt/yt/core/misc/statistics.cpp
@@ -91,11 +91,15 @@ bool TSummary::operator ==(const TSummary& other) const
////////////////////////////////////////////////////////////////////////////////
+namespace {
+
bool IsAllowedComponentChar(char c) noexcept
{
return IsAsciiAlnum(c) || c == '_';
}
+} // namespace
+
std::optional<char> CheckStatisticPath(const NYPath::TYPath& path)
{
for (auto c : path) {
diff --git a/yt/yt/core/misc/statistics.h b/yt/yt/core/misc/statistics.h
index 2cd644e65b5..7e5a81bdf40 100644
--- a/yt/yt/core/misc/statistics.h
+++ b/yt/yt/core/misc/statistics.h
@@ -49,7 +49,7 @@ void Serialize(const TSummary& summary, NYson::IYsonConsumer* consumer);
////////////////////////////////////////////////////////////////////////////////
-//! Return the invalid character if the given path is invalid, otherwise return |nullopt|.
+//! Returns the invalid character if the given path is invalid, otherwise returns |nullopt|.
std::optional<char> CheckStatisticPath(const NYPath::TYPath& path);
////////////////////////////////////////////////////////////////////////////////