summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2020-02-06 16:57:45 -0800
committer Colin Cross <ccross@android.com> 2020-02-06 17:41:19 -0800
commit6961a491a551178e4dfd6c345f35e2530e399eb8 (patch)
tree7a6855ef4c7b495602dab000e8d96358693f2a59 /java/java.go
parent387ad5c5761c45f36cb745d455163e5b367f77de (diff)
Fix product variable zero value check
The zero value check was being done by using reflect.DeepEqual on a field from the default product variables, but this results in comparison against a random type when the product variables struct for the module has been filtered down. Luckily this will always fail false, which just removed and optimization but left the behavior correct. Use reflect.IsZero instead, which is both faster and correct. Test: variable_test.go Change-Id: Ieaaa590c2788ca39230e6695397e8ba8d1c6c103
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions