Zookeeper: style fix

This commit is contained in:
Pavel Kartavyy 2015-06-10 15:28:42 +03:00
parent 67944de74e
commit e201f39f7f

View File

@ -390,7 +390,7 @@ bool ZooKeeper::tryGet(const std::string & path, std::string & res, Stat * stat_
{
int32_t code = retry(std::bind(&ZooKeeper::getImpl, this, std::ref(path), std::ref(res), stat_, watch));
if (!( code == ZOK ||
if (!(code == ZOK ||
code == ZNONODE))
throw KeeperException(code, path);