diff options
author | azevaykin <azevaykin@yandex-team.com> | 2023-10-25 13:53:48 +0300 |
---|---|---|
committer | azevaykin <azevaykin@yandex-team.com> | 2023-10-25 14:16:54 +0300 |
commit | 70c7afa4682ef8e82f965200054430838c9e9050 (patch) | |
tree | 035bb03fea3acf54a06681e1e77c6db6173323fd /library/cpp | |
parent | d04e402b33f2eb5a5badb27b5057b482b1b244d3 (diff) | |
download | ydb-70c7afa4682ef8e82f965200054430838c9e9050.tar.gz |
Code style
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/actors/testlib/test_runtime.cpp | 2 | ||||
-rw-r--r-- | library/cpp/actors/testlib/test_runtime.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/library/cpp/actors/testlib/test_runtime.cpp b/library/cpp/actors/testlib/test_runtime.cpp index 323e0033ea..18e58c21de 100644 --- a/library/cpp/actors/testlib/test_runtime.cpp +++ b/library/cpp/actors/testlib/test_runtime.cpp @@ -1208,7 +1208,7 @@ namespace NActors { for (auto observer : ObserverFuncs) { observer(ev); - if(!ev) break; + if (!ev) break; } if(ev && ObserverFunc(ev) != EEventAction::DROP && ev) diff --git a/library/cpp/actors/testlib/test_runtime.h b/library/cpp/actors/testlib/test_runtime.h index 24bbf2feff..7e650565cc 100644 --- a/library/cpp/actors/testlib/test_runtime.h +++ b/library/cpp/actors/testlib/test_runtime.h @@ -305,14 +305,16 @@ namespace NActors { { } - ~TEventObserverHolder() { + ~TEventObserverHolder() + { Remove(); } void Remove() { - if(Iter == List.end()) + if (Iter == List.end()) { return; + } List.erase(Iter); Iter = List.end(); |