diff options
Diffstat (limited to 'java/lint.go')
-rw-r--r-- | java/lint.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/java/lint.go b/java/lint.go index 9827159c8..7a6e5d9c1 100644 --- a/java/lint.go +++ b/java/lint.go @@ -190,10 +190,8 @@ func (l *linter) deps(ctx android.BottomUpMutatorContext) { extraCheckModules := l.properties.Lint.Extra_check_modules - if checkOnly := ctx.Config().Getenv("ANDROID_LINT_CHECK"); checkOnly != "" { - if checkOnlyModules := ctx.Config().Getenv("ANDROID_LINT_CHECK_EXTRA_MODULES"); checkOnlyModules != "" { - extraCheckModules = strings.Split(checkOnlyModules, ",") - } + if extraCheckModulesEnv := ctx.Config().Getenv("ANDROID_LINT_CHECK_EXTRA_MODULES"); extraCheckModulesEnv != "" { + extraCheckModules = append(extraCheckModules, strings.Split(extraCheckModulesEnv, ",")...) } ctx.AddFarVariationDependencies(ctx.Config().BuildOSCommonTarget.Variations(), |