Use proptools.BoolDefault
Replace x == nil || *x with proptools.BoolDefault(x, true) Test: m checkbuild Change-Id: Icc5378cab3ea72d86544b40761c2f00b278cc0a1
This commit is contained in:
@@ -128,7 +128,7 @@ type testDecorator struct {
|
||||
}
|
||||
|
||||
func (test *testDecorator) gtest() bool {
|
||||
return test.Properties.Gtest == nil || *test.Properties.Gtest == true
|
||||
return BoolDefault(test.Properties.Gtest, true)
|
||||
}
|
||||
|
||||
func (test *testDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
|
||||
|
Reference in New Issue
Block a user