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

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
pull/13032/head
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
1 changed files with 1 additions and 0 deletions

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)