From c522b45242522a256d80ff2e471e18ca9d64766f Mon Sep 17 00:00:00 2001 From: rainzm Date: Tue, 22 Sep 2020 15:02:55 +0800 Subject: [PATCH] fix(notify): return correct value when sortContactType --- pkg/notify/models/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/notify/models/config.go b/pkg/notify/models/config.go index b30273528c..d7e39914bc 100644 --- a/pkg/notify/models/config.go +++ b/pkg/notify/models/config.go @@ -181,7 +181,7 @@ func sortContactType(ctypes []string) []string { ret = append(ret, ct) } } - return nil + return ret } func (cm *SConfigManager) allContactType() ([]string, error) {