Delete useless boolean (#2107)

Signed-off-by: xge-zilliz <xi.ge@zilliz.com>
This commit is contained in:
xge-zilliz 2020-04-25 15:49:43 +08:00 committed by GitHub
parent d3daa0d3ea
commit 42b1983625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ IndexHNSW::Load(const BinarySet& index_binary) {
index_ = std::make_shared<hnswlib::HierarchicalNSW<float>>(space);
index_->loadIndex(reader);
normalize = index_->metric_type_ == 1 ? true : false; // 1 == InnerProduct
normalize = index_->metric_type_ == 1; // 1 == InnerProduct
} catch (std::exception& e) {
KNOWHERE_THROW_MSG(e.what());
}