From 49dc73028e6cfcde809b976f521eb8f28026f824 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 16 Jun 2023 23:38:53 -0400 Subject: [PATCH] chore: move the times function to functions.go The functions.go file is where private functions to a given plugin go. --- plugins/common/common.go | 7 ------- plugins/common/functions.go | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/common/common.go b/plugins/common/common.go index 19dfbdd45..53a7e27fd 100644 --- a/plugins/common/common.go +++ b/plugins/common/common.go @@ -617,10 +617,3 @@ func VerifyAppName(appName string) error { return nil } - -func times(str string, n int) (out string) { - for i := 0; i < n; i++ { - out += str - } - return -} diff --git a/plugins/common/functions.go b/plugins/common/functions.go index 986c4d084..185ddd9f5 100644 --- a/plugins/common/functions.go +++ b/plugins/common/functions.go @@ -45,3 +45,10 @@ func removeEmptyEntries(s []string) []string { } return r } + +func times(str string, n int) (out string) { + for i := 0; i < n; i++ { + out += str + } + return +}