diff options
| author | Ethan Chen <intervigil@gmail.com> | 2019-02-10 14:44:10 -0800 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2019-09-13 19:27:42 +0200 |
| commit | 4987f5ff0888a3009959010fdab05b8a3f79ff3e (patch) | |
| tree | 8c60efd1889ddc6b317b9038f82d8351a5237694 /android | |
| parent | 298e759aeb2be873488c46801c88380c5cf080e4 (diff) | |
| download | build_soong-4987f5ff0888a3009959010fdab05b8a3f79ff3e.tar.gz build_soong-4987f5ff0888a3009959010fdab05b8a3f79ff3e.tar.bz2 build_soong-4987f5ff0888a3009959010fdab05b8a3f79ff3e.zip | |
Fix formatting
Change-Id: If8fce98316be03fc9dabe27864bc4a324ab6fdb7
Diffstat (limited to 'android')
| -rw-r--r-- | android/variable.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/android/variable.go b/android/variable.go index e169fea5..56fdcc18 100644 --- a/android/variable.go +++ b/android/variable.go @@ -357,7 +357,6 @@ func variableMutator(mctx BottomUpMutatorContext) { valStruct := reflect.ValueOf(mctx.Config().productVariables) doVariableMutation(mctx, a, variableValues, zeroValues, valStruct) - } func doVariableMutation(mctx BottomUpMutatorContext, a *ModuleBase, variableValues reflect.Value, zeroValues reflect.Value, @@ -370,10 +369,10 @@ func doVariableMutation(mctx BottomUpMutatorContext, a *ModuleBase, variableValu // Check that the variable was set for the product val := valStruct.FieldByName(name) - if val.IsValid() && val.Kind() == reflect.Struct { + if val.IsValid() && val.Kind() == reflect.Struct { doVariableMutation(mctx, a, variableValue, zeroValue, val) - continue - } else if !val.IsValid() || val.Kind() != reflect.Ptr || val.IsNil() { + continue + } else if !val.IsValid() || val.Kind() != reflect.Ptr || val.IsNil() { continue } |
