Merge "cosmetic: unnecessary method indirection"

This commit is contained in:
Usta Shrestha
2022-08-10 15:05:09 +00:00
committed by Gerrit Code Review

View File

@@ -66,11 +66,9 @@ var commands = []command{
{ {
flag: "--make-mode", flag: "--make-mode",
description: "build the modules by the target name (i.e. soong_docs)", description: "build the modules by the target name (i.e. soong_docs)",
config: func(ctx build.Context, args ...string) build.Config { config: build.NewConfig,
return build.NewConfig(ctx, args...) stdio: stdio,
}, run: runMake,
stdio: stdio,
run: runMake,
}, { }, {
flag: "--dumpvar-mode", flag: "--dumpvar-mode",
description: "print the value of the legacy make variable VAR to stdout", description: "print the value of the legacy make variable VAR to stdout",
@@ -114,7 +112,7 @@ func inList(s string, list []string) bool {
// Main execution of soong_ui. The command format is as follows: // Main execution of soong_ui. The command format is as follows:
// //
// soong_ui <command> [<arg 1> <arg 2> ... <arg n>] // soong_ui <command> [<arg 1> <arg 2> ... <arg n>]
// //
// Command is the type of soong_ui execution. Only one type of // Command is the type of soong_ui execution. Only one type of
// execution is specified. The args are specific to the command. // execution is specified. The args are specific to the command.