Skip to content

Commit 5b01d7d

Browse files
committed
fix the bug. Don't panic if there is an example file, just ignore it
1 parent 42d1102 commit 5b01d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/project/project.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func findSubprojects(superproject Type, apexSuperprojectType projecttype.Type) [
193193
var immediateSubprojects []Type
194194
for _, subprojectsFolderName := range subprojectsFolderNames {
195195
subprojectsPath := superproject.Path.Join(subprojectsFolderName)
196-
if subprojectsPath.Exist() {
196+
if subprojectsPath.Exist() && subprojectsPath.IsDir() {
197197
directoryListing, err := subprojectsPath.ReadDir()
198198
if err != nil {
199199
panic(err)

0 commit comments

Comments
 (0)