Skip unnecessary repeititon in validation am: a66c0b5900
am: 962c7e0f49
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1776525 Change-Id: Id7283a576664ac31e0fbcbe805608d1bc0fba23a
This commit is contained in:
@@ -2389,8 +2389,7 @@ func (b *baseModuleContext) ModuleFromName(name string) (blueprint.Module, bool)
|
|||||||
if !b.BazelConversionMode() {
|
if !b.BazelConversionMode() {
|
||||||
panic("cannot call ModuleFromName if not in bazel conversion mode")
|
panic("cannot call ModuleFromName if not in bazel conversion mode")
|
||||||
}
|
}
|
||||||
if len(name) > 1 && (name[0] == ':' || (name[0] == '/' && name[1] == '/')) {
|
if moduleName, _ := SrcIsModuleWithTag(name); moduleName != "" {
|
||||||
moduleName, _ := SrcIsModuleWithTag(name)
|
|
||||||
return b.bp.ModuleFromName(moduleName)
|
return b.bp.ModuleFromName(moduleName)
|
||||||
} else {
|
} else {
|
||||||
return b.bp.ModuleFromName(name)
|
return b.bp.ModuleFromName(name)
|
||||||
|
Reference in New Issue
Block a user