mirror of
https://github.com/spf13/cobra
synced 2024-11-04 21:07:19 +00:00
Simplifying goGet function
This commit is contained in:
parent
cf87fc4e30
commit
26825627c2
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue