From b5b73a3a8f344e0b0ae8d1f3499215046ffec1ac Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 8 Dec 2021 16:38:45 -0700 Subject: [PATCH] removed unnecessary leading new lines Signed-off-by: Richard Jones --- state/project.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/state/project.go b/state/project.go index 4b28e4e2..c85a50d3 100644 --- a/state/project.go +++ b/state/project.go @@ -391,7 +391,6 @@ func cueModInit(ctx context.Context, parentDir string) error { } func VendorUniverse(ctx context.Context, p string) error { - if p == "" { p = getCueModParent() } @@ -421,13 +420,11 @@ func VendorUniverse(ctx context.Context, p string) error { } func getCueModParent() string { - cwd, _ := os.Getwd() parentDir := cwd // traverse the directory tree up through ancestors looking for a cue.mod folder for { - if _, err := os.Stat(path.Join(parentDir, "cue.mod")); !errors.Is(err, os.ErrNotExist) { break // found it! }