changed module model and fixed empty name in event while fetch

This commit is contained in:
Elmar Kresse
2023-09-30 21:44:43 +02:00
parent 86f2636681
commit b1927864c2
5 changed files with 31 additions and 42 deletions

View File

@@ -20,3 +20,10 @@ func Contains(s []string, e string) bool {
}
return false
}
func ReplaceEmptyString(word string, replacement string) string {
if OnlyWhitespace(word) {
return replacement
}
return word
}