diff options
| author | 2022-08-10 15:05:09 +0000 | |
|---|---|---|
| committer | 2022-08-10 15:05:09 +0000 | |
| commit | e77dc9668ef40ede761b8c0a3705ebbb03ba8807 (patch) | |
| tree | cc2852d1991dac909d5b7e4c7432dc97d41261a5 | |
| parent | 136c0d110dc9c9dd49096e8b0f8cb385412c9942 (diff) | |
| parent | 59417a19c80cb69cd35df5a1b969b5372479985f (diff) | |
Merge "cosmetic: unnecessary method indirection"
| -rw-r--r-- | cmd/soong_ui/main.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cmd/soong_ui/main.go b/cmd/soong_ui/main.go index 16f994d55..2770094e3 100644 --- a/cmd/soong_ui/main.go +++ b/cmd/soong_ui/main.go @@ -66,11 +66,9 @@ var commands = []command{ { flag: "--make-mode", description: "build the modules by the target name (i.e. soong_docs)", - config: func(ctx build.Context, args ...string) build.Config { - return build.NewConfig(ctx, args...) - }, - stdio: stdio, - run: runMake, + config: build.NewConfig, + stdio: stdio, + run: runMake, }, { flag: "--dumpvar-mode", 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: // -// 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 // execution is specified. The args are specific to the command. |