Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
b1e6ccedf00376f8b81fcad6db2e34af1d5a12ca
  • Loading branch information
p4vook committed Jul 8, 2024
1 parent e6a2ee7 commit 8df4645
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions yt/yt/core/misc/statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion yt/yt/core/misc/statistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 8df4645

Please sign in to comment.