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

Commit 78257e5b authored by Jingwen Chen's avatar Jingwen Chen
Browse files

Add a comment to absolutePath on why it's not exported.

Change-Id: Ib6595e8af3d845861d4c5988750e3c43280bb697
Test: TH
parent 79610d55
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2001,6 +2001,9 @@ func createDirIfNonexistent(dir string, perm os.FileMode) error {
	}
}

// absolutePath is deliberately private so that Soong's Go plugins can't use it to find and
// read arbitrary files without going through the methods in the current package that track
// dependencies.
func absolutePath(path string) string {
	if filepath.IsAbs(path) {
		return path