[skip ci] add comment for PositivelyRelated (#13080)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
shaoyue 2021-12-09 16:15:07 +08:00 committed by GitHub
parent fbce4b9f0a
commit c50ee1a2fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ package distance
import "strings"
// PositivelyRelated return if metricType are "ip" or "IP"
func PositivelyRelated(metricType string) bool {
mUpper := strings.ToUpper(metricType)
return mUpper == strings.ToUpper(IP)