Skip to content

Commit 1eecebc

Browse files
committed
chore: more clean up tasks
Signed-off-by: Harsh4902 <harshparmar4902@gmail.com>
1 parent 78bfc36 commit 1eecebc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/importURL.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func NewImportURLCommand() *cobra.Command {
4747
os.Exit(1)
4848
}
4949

50-
specificationFiles := os.Args[2]
50+
specificationFiles := args[0]
5151

5252
// Collect optional HTTPS transport flags.
5353
if insecureTLS {

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)