From 76b8cff44533dc49a201cfacd60b913cb0bc7d9e Mon Sep 17 00:00:00 2001 From: bergquist Date: Thu, 22 Sep 2016 16:16:58 +0200 Subject: [PATCH] fix(gnet): remove trailing , --- pkg/plugins/update_checker.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/plugins/update_checker.go b/pkg/plugins/update_checker.go index ed43398357e..980c813888f 100644 --- a/pkg/plugins/update_checker.go +++ b/pkg/plugins/update_checker.go @@ -39,17 +39,16 @@ func StartPluginUpdateChecker() { } func getAllExternalPluginSlugs() string { - str := "" - + var result []string for _, plug := range Plugins { if plug.IsCorePlugin { continue } - str += plug.Id + "," + result = append(result, plug.Id) } - return str + return strings.Join(result, ",") } func checkForUpdates() {