Skip to content

Commit 967b44e

Browse files
committed
chore: removed manual default value setting for 'waitFor' flag
Signed-off-by: Harsh4902 <harshparmar4902@gmail.com>
1 parent 78bfc36 commit 967b44e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ func NewTestCommand() *cobra.Command {
8080
}
8181

8282
// Validate presence and values of flags.
83-
if len(waitFor) == 0 || (!strings.HasSuffix(waitFor, "milli") && !strings.HasSuffix(waitFor, "sec") && !strings.HasSuffix(waitFor, "min")) {
83+
if !strings.HasSuffix(waitFor, "milli") && !strings.HasSuffix(waitFor, "sec") && !strings.HasSuffix(waitFor, "min") {
8484
fmt.Println("--waitFor format is wrong. Applying default 5sec")
85-
waitFor = "5sec"
8685
}
8786

8887
// Collect optional HTTPS transport flags.

0 commit comments

Comments
 (0)