diff --git a/core/src/index/knowhere/knowhere/index/vector_index/IndexHNSW.cpp b/core/src/index/knowhere/knowhere/index/vector_index/IndexHNSW.cpp index bb7908214a..3d14d1be8e 100644 --- a/core/src/index/knowhere/knowhere/index/vector_index/IndexHNSW.cpp +++ b/core/src/index/knowhere/knowhere/index/vector_index/IndexHNSW.cpp @@ -68,7 +68,7 @@ IndexHNSW::Load(const BinarySet& index_binary) { index_ = std::make_shared>(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()); }