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