Skip to content

Commit

Permalink
don't use result in case of an error
Browse files Browse the repository at this point in the history
  • Loading branch information
denik committed Dec 4, 2024
1 parent 1c3f5f2 commit 2d3ee18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundle/config/mutator/load_git_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
if err != nil {
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
}

0 comments on commit 2d3ee18

Please sign in to comment.