diff options
Diffstat (limited to 'ydb/library/persqueue/topic_parser/topic_parser.cpp')
| -rw-r--r-- | ydb/library/persqueue/topic_parser/topic_parser.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ydb/library/persqueue/topic_parser/topic_parser.cpp b/ydb/library/persqueue/topic_parser/topic_parser.cpp index 66ae79c1580..a9598b25b22 100644 --- a/ydb/library/persqueue/topic_parser/topic_parser.cpp +++ b/ydb/library/persqueue/topic_parser/topic_parser.cpp @@ -1,19 +1,19 @@ -#include "topic_parser.h" - +#include "topic_parser.h" + #include <ydb/core/base/appdata.h> #include <util/folder/path.h> -namespace NPersQueue { - +namespace NPersQueue { + namespace { TString FullPath(const TMaybe<TString> &database, const TString &path) { - if (database.Defined() && !path.StartsWith(*database) && !path.Contains('\0')) { - try { - return (TFsPath(*database) / path).GetPath(); - } catch(...) { - return path; - } + if (database.Defined() && !path.StartsWith(*database) && !path.Contains('\0')) { + try { + return (TFsPath(*database) / path).GetPath(); + } catch(...) { + return path; + } } else { return path; } @@ -67,7 +67,7 @@ TString NormalizeFullPath(const TString& fullPath) { return fullPath; } } - + TTopicsListController::TTopicsListController( const std::shared_ptr<TTopicNamesConverterFactory>& converterFactory, bool haveClusters, const TVector<TString>& clusters, const TString& localCluster @@ -118,5 +118,5 @@ TConverterFactoryPtr TTopicsListController::GetConverterFactory() const { return ConverterFactory; }; -} // namespace NPersQueue +} // namespace NPersQueue |
