Skip to content

Commit 87dda63

Browse files
committed
Fixed removal of spaces
1 parent 4eebe22 commit 87dda63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/util.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ var (
6161
)
6262

6363
func init() {
64-
isVerbose = os.Getenv("VERBOSE") != ""
65-
isEnterprise = os.Getenv("ENTERPRISE") != ""
66-
testModes = strings.Split(os.Getenv("TEST_MODES"), ",")
64+
isVerbose = strings.TrimSpace(os.Getenv("VERBOSE")) != ""
65+
isEnterprise = strings.TrimSpace(os.Getenv("ENTERPRISE")) != ""
66+
testModes = strings.Split(strings.TrimSpace(os.Getenv("TEST_MODES")), ",")
6767
if len(testModes) == 1 && testModes[0] == "" {
6868
testModes = nil
6969
}
70-
starterModes = strings.Split(os.Getenv("STARTER_MODES"), ",")
70+
starterModes = strings.Split(strings.TrimSpace(os.Getenv("STARTER_MODES")), ",")
7171
if len(starterModes) == 1 && starterModes[0] == "" {
7272
starterModes = nil
7373
}

0 commit comments

Comments
 (0)