Omit unused function

pull/3676/head
BeziCZ 2025-02-17 14:26:59 +01:00
parent c17c4de9b0
commit f1b05bd211
1 changed files with 0 additions and 12 deletions

View File

@ -186,15 +186,3 @@ func cleanUpMapValue(v interface{}) interface{} {
return v
}
}
// convertCmdStrToCmdArray checks if cmd string is blank (whitespace included)
// then returns empty string array, else returns the split word array of cmd.
// This is to ensure the result will never be []string{""}
func convertCmdStrToCmdArray(cmd string) []string {
var cmdArray []string
trimmedCmdStr := strings.TrimSpace(cmd)
if trimmedCmdStr != "" {
cmdArray = strings.Split(trimmedCmdStr, ",")
}
return cmdArray
}