aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/pathsplit.cpp
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/folder/pathsplit.cpp
parent7fe839092527589b38f014d854c51565b3c1adfa (diff)
downloadydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/pathsplit.cpp')
-rw-r--r--util/folder/pathsplit.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/folder/pathsplit.cpp b/util/folder/pathsplit.cpp
index cb2340bbc60..81d439a727b 100644
--- a/util/folder/pathsplit.cpp
+++ b/util/folder/pathsplit.cpp
@@ -17,8 +17,8 @@ static inline size_t ToReserve(const T& t) {
}
void TPathSplitTraitsUnix::DoParseFirstPart(const TStringBuf part) {
- if (part == TStringBuf(".")) {
- push_back(TStringBuf("."));
+ if (part == TStringBuf(".")) {
+ push_back(TStringBuf("."));
return;
}
@@ -46,8 +46,8 @@ void TPathSplitTraitsUnix::DoParsePart(const TStringBuf part0) {
void TPathSplitTraitsWindows::DoParseFirstPart(const TStringBuf part0) {
TStringBuf part(part0);
- if (part == TStringBuf(".")) {
- push_back(TStringBuf("."));
+ if (part == TStringBuf(".")) {
+ push_back(TStringBuf("."));
return;
}
@@ -107,9 +107,9 @@ TString TPathSplitStore::DoReconstruct(const TStringBuf slash) const {
}
void TPathSplitStore::AppendComponent(const TStringBuf comp) {
- if (!comp || comp == TStringBuf(".")) {
+ if (!comp || comp == TStringBuf(".")) {
; // ignore
- } else if (comp == TStringBuf("..") && !empty() && back() != TStringBuf("..")) {
+ } else if (comp == TStringBuf("..") && !empty() && back() != TStringBuf("..")) {
pop_back();
} else {
// push back first .. also