Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0e575c7 authored by Usta (Tsering) Shrestha's avatar Usta (Tsering) Shrestha Committed by Gerrit Code Review
Browse files

Merge "cosmetics"

parents 2e717077 49d04e89
Loading
Loading
Loading
Loading
+5 −12
Original line number Diff line number Diff line
@@ -202,13 +202,13 @@ func plantSymlinkForestRecursive(cfg android.Config, topdir string, forestDir st
		}
	}

	allEntries := make(map[string]bool)
	allEntries := make(map[string]struct{})
	for n := range srcDirMap {
		allEntries[n] = true
		allEntries[n] = struct{}{}
	}

	for n := range buildFilesMap {
		allEntries[n] = true
		allEntries[n] = struct{}{}
	}

	err := os.MkdirAll(shared.JoinPath(topdir, forestDir), 0777)
@@ -250,15 +250,8 @@ func plantSymlinkForestRecursive(cfg android.Config, topdir string, forestDir st
			continue
		}

		sDir := false
		bDir := false
		if sExists {
			sDir = isDir(shared.JoinPath(topdir, srcChild), srcChildEntry)
		}

		if bExists {
			bDir = isDir(shared.JoinPath(topdir, buildFilesChild), buildFilesChildEntry)
		}
		sDir := sExists && isDir(shared.JoinPath(topdir, srcChild), srcChildEntry)
		bDir := bExists && isDir(shared.JoinPath(topdir, buildFilesChild), buildFilesChildEntry)

		if !sExists {
			if bDir && excludeChild != nil {