diff --git a/utils/fileutils.go b/utils/fileutils.go index 4a78e94e..adc1e953 100644 --- a/utils/fileutils.go +++ b/utils/fileutils.go @@ -4,7 +4,6 @@ import ( "bufio" "encoding/json" "fmt" - "github.com/jfrog/build-info-go/entities" "io" "io/ioutil" "net/http" @@ -14,6 +13,8 @@ import ( "strconv" "strings" "time" + + "github.com/jfrog/build-info-go/entities" ) const ( @@ -519,15 +520,6 @@ func CreateDirIfNotExist(path string) error { return err } -func IsStringInSlice(string string, strings []string) bool { - for _, v := range strings { - if v == string { - return true - } - } - return false -} - func IsPathSymlink(path string) bool { f, _ := os.Lstat(path) return f != nil && IsFileSymlink(f) diff --git a/utils/utils.go b/utils/utils.go index 203aa5bd..453cfe1c 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -11,3 +11,12 @@ func GetRegExp(regex string) (*regexp.Regexp, error) { } return regExp, nil } + +func IsStringInSlice(str string, strings []string) bool { + for _, v := range strings { + if v == str { + return true + } + } + return false +}