We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6815b3 commit a527598Copy full SHA for a527598
testaddon.go
@@ -27,6 +27,10 @@ func getUniqueDir(path string) (string, error) {
27
variant = strings.TrimSuffix(variant, "UnitTest")
28
29
runes := []rune(variant)
30
+
31
+ if len(runes) == 0 {
32
+ return "", fmt.Errorf("get variant name from task name: empty string after trimming")
33
+ }
34
runes[0] = unicode.ToLower(runes[0])
35
variant = string(runes)
36
0 commit comments