mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-04 23:50:50 +00:00
fix code style
This commit is contained in:
parent
3c86c8b3c9
commit
10cefe4f51
@ -184,10 +184,10 @@ static String extractZooKeeperName(const String & path)
|
||||
auto pos = path.find(':');
|
||||
if (pos != String::npos)
|
||||
{
|
||||
auto zookeeper_name_ = path.substr(0, pos);
|
||||
if (zookeeper_name_.empty())
|
||||
auto zookeeper_name = path.substr(0, pos);
|
||||
if (zookeeper_name.empty())
|
||||
throw Exception("Zookeeper path should start with '/' or '<auxiliary_zookeeper_name>:/'", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT);
|
||||
return zookeeper_name_;
|
||||
return zookeeper_name;
|
||||
}
|
||||
static constexpr auto default_zookeeper_name = "default";
|
||||
return default_zookeeper_name;
|
||||
|
Loading…
Reference in New Issue
Block a user