summaryrefslogtreecommitdiff
path: root/android/prebuilt_test.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-11-15 14:47:49 -0800
committer Cole Faust <colefaust@google.com> 2024-11-15 15:03:34 -0800
commit5146e78cbcee8ee9f8b82acfc517fcb4638c807c (patch)
tree681d82e3fc3d0ff2ceb268eada6b28a8c06e73a9 /android/prebuilt_test.go
parent80a4e45395cfb58665f68e6ac5371f4c4de4af19 (diff)
Deny nil outputpaths
To prevent nils from permeating the rest of the codebase. Bug: 379329165 Test: m nothing --no-skip-soong-tests Change-Id: I3e789b6af0f101cf4bc0bd4666bf3a443f2f2c84
Diffstat (limited to 'android/prebuilt_test.go')
-rw-r--r--android/prebuilt_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/android/prebuilt_test.go b/android/prebuilt_test.go
index 5e4af0ba5..b90ef3b1c 100644
--- a/android/prebuilt_test.go
+++ b/android/prebuilt_test.go
@@ -508,11 +508,10 @@ func (p *prebuiltModule) Name() string {
}
func (p *prebuiltModule) GenerateAndroidBuildActions(ctx ModuleContext) {
- var src Path
if len(p.properties.Srcs) >= 1 {
- src = p.prebuilt.SingleSourcePath(ctx)
+ src := p.prebuilt.SingleSourcePath(ctx)
+ ctx.SetOutputFiles(Paths{src}, "")
}
- ctx.SetOutputFiles(Paths{src}, "")
}
func (p *prebuiltModule) Prebuilt() *Prebuilt {