Skip to content

Commit

Permalink
simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ianic committed Sep 28, 2021
1 parent ef73786 commit 786f06d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cli/cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@ type testCmd struct {
}

func (c *testCmd) run() error {
err := shell.Exec(shell.ExecOptions{
return shell.Exec(shell.ExecOptions{
//TODO: move magic string to constant
Env: []string{"MANTIL_API_URL=" + c.project.RestEndpoint(c.stageName)},
Args: c.args(),
WorkDir: c.repoPath + "/test",
Logger: log.Info,
ShowShellCmd: false,
})
if err != nil {
return nil
}
return nil
}

func (c *testCmd) args() []string {
Expand Down

0 comments on commit 786f06d

Please sign in to comment.