aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/split.h
diff options
context:
space:
mode:
authornae202 <nae202@yandex-team.com>2024-11-20 12:52:01 +0300
committernae202 <nae202@yandex-team.com>2024-11-20 13:14:09 +0300
commit0b9d91e900b52bccd6eabd033acbb57c4ee173fc (patch)
tree6839ed69fbda4d5214eb418acc4554924bc64160 /util/string/split.h
parent878e26057d11cce46b7bc3a6c838209d4686e28b (diff)
downloadydb-0b9d91e900b52bccd6eabd033acbb57c4ee173fc.tar.gz
Part of PR. Style
Часть большого ПР REVIEW:7264088 commit_hash:0f5b03fbbed0ac30f734943309e3ef5cd4d7a30e
Diffstat (limited to 'util/string/split.h')
-rw-r--r--util/string/split.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/string/split.h b/util/string/split.h
index 2000498591..844d3d6722 100644
--- a/util/string/split.h
+++ b/util/string/split.h
@@ -205,8 +205,9 @@ struct TFindFirstOf {
inline Char* FindFirstOf(Char* b, Char* e) const noexcept {
Char* ret = b;
for (; ret != e; ++ret) {
- if (NStringSplitPrivate::Find(Set, *ret))
+ if (NStringSplitPrivate::Find(Set, *ret)) {
break;
+ }
}
return ret;
}
@@ -398,8 +399,9 @@ struct TSimplePusher {
template <class T>
static inline void Split(char* buf, char ch, T* res) {
res->resize(0);
- if (*buf == 0)
+ if (*buf == 0) {
return;
+ }
TCharDelimiter<char> delim(ch);
TSimplePusher<T> pusher = {res};