removed unnecessary leading new lines

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-08 16:38:45 -07:00
parent 28cebb1bf0
commit b5b73a3a8f
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C

View File

@ -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!
}