don't use result in case of an error

This commit is contained in:
Denis Bilenko 2024-12-04 14:07:09 +01:00
parent 1c3f5f2aa1
commit 2d3ee1831e
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ func (m *loadGitDetails) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagn
relBundlePath, err := filepath.Rel(b.WorktreeRoot.Native(), b.BundleRoot.Native()) relBundlePath, err := filepath.Rel(b.WorktreeRoot.Native(), b.BundleRoot.Native())
if err != nil { if err != nil {
diags = append(diags, diag.FromErr(err)...) diags = append(diags, diag.FromErr(err)...)
} else {
b.Config.Bundle.Git.BundleRootPath = filepath.ToSlash(relBundlePath)
} }
b.Config.Bundle.Git.BundleRootPath = filepath.ToSlash(relBundlePath)
return diags return diags
} }