fix code style

This commit is contained in:
Peng Jian 2020-11-17 20:45:21 +08:00
parent 3c86c8b3c9
commit 10cefe4f51

View File

@ -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;