diff options
| author | Ethan Chen <intervigil@gmail.com> | 2019-02-10 14:44:10 -0800 |
|---|---|---|
| committer | Ethan Chen <intervigil@gmail.com> | 2019-03-03 21:43:00 -0800 |
| commit | dc2431fda45c13e418cc69dd55ba056168334ed3 (patch) | |
| tree | 525d71a26f3802d1663b9933a4913862ac8880eb | |
| parent | ef83e2fb6b7f41da3615d585588ee1bf0bc8f2c7 (diff) | |
| download | build_soong-dc2431fda45c13e418cc69dd55ba056168334ed3.tar.gz build_soong-dc2431fda45c13e418cc69dd55ba056168334ed3.tar.bz2 build_soong-dc2431fda45c13e418cc69dd55ba056168334ed3.zip | |
Fix formatting
Change-Id: If8fce98316be03fc9dabe27864bc4a324ab6fdb7
| -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 6af4f7e1..4fe78d37 100644 --- a/android/variable.go +++ b/android/variable.go @@ -300,7 +300,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, @@ -313,10 +312,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 } |
