From c7392d2a9383d434d7e49b85cd6a5f5ffd917b9e Mon Sep 17 00:00:00 2001 From: Kosuke Morimoto Date: Mon, 19 Aug 2024 12:24:09 +0900 Subject: [PATCH] fix unit test Signed-off-by: Kosuke Morimoto --- internal/core/algorithm/ngt/option.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/algorithm/ngt/option.go b/internal/core/algorithm/ngt/option.go index 5e622ec54a..62b99af3ec 100644 --- a/internal/core/algorithm/ngt/option.go +++ b/internal/core/algorithm/ngt/option.go @@ -109,7 +109,7 @@ func WithDimension(size int) Option { // WithDistanceTypeByString represents the option to set the distance type for NGT. func WithDistanceTypeByString(dt string) Option { - var d distanceType + d := DistanceNone switch strings.NewReplacer("-", "", "_", "", " ", "").Replace(strings.ToLower(dt)) { case "l1": d = L1