Skip to content

Commit

Permalink
Simplifying goGet function
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Nov 3, 2021
1 parent cf87fc4 commit 2682562
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cobra/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ type CurDir struct {
}

func goGet(mod string) error {
cmd := exec.Command("go", "get", mod)
return cmd.Run()
return exec.Command("go", "get", mod).Run()
}

func modInfoJSON(args ...string) []byte {
Expand Down

0 comments on commit 2682562

Please sign in to comment.