fix style

This commit is contained in:
Mikhail Artemenko 2024-08-29 13:28:00 +00:00
parent f06678ee6c
commit d8f0ce92af

View File

@ -690,15 +690,9 @@ public:
{ {
} }
bool isTryLimitReached() const bool isTryLimitReached() const { return failed_tries_count >= kTryLimit; }
{
return failed_tries_count >= kTryLimit;
}
bool isCompleted() const bool isCompleted() const { return is_completed; }
{
return is_completed;
}
void perform() void perform()
{ {
@ -718,13 +712,11 @@ public:
switch (code) switch (code)
{ {
case Coordination::Error::ZOK: case Coordination::Error::ZOK: {
{
is_completed = true; is_completed = true;
return; return;
} }
case Coordination::Error::ZBADVERSION: case Coordination::Error::ZBADVERSION: {
{
++failed_tries_count; ++failed_tries_count;
if (isTryLimitReached()) if (isTryLimitReached())