Add comment

This commit is contained in:
Lennart Kats 2024-08-24 10:41:43 +02:00
parent a5d4dbe466
commit 2835617d70
No known key found for this signature in database
GPG Key ID: 1EB8B57673197023
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ func validateDevelopmentMode(b *bundle.Bundle) diag.Diagnostics {
return diags
}
// findNonUserPath finds the first workspace path such as root_path that doesn't
// contain the current username or current user's shortname.
func findNonUserPath(b *bundle.Bundle) string {
containsName := func(path string) bool {
username := b.Config.Workspace.CurrentUser.UserName