Skip to content

Commit

Permalink
[gradle] return non replaced args. Fixes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Oct 6, 2020
1 parent 0850c82 commit 5cef4c3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gum/gradle.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,11 @@ func (c *GradleCommand) debugGradle(oargs []string, rargs []string) {
}

func replaceGradleTasks(config *Config, args *ParsedArgs) []string {
var nargs []string = []string{}

if config.gradle.replace {
nargs = replaceArgs(args.Args, config.gradle.mappings, true)
return replaceArgs(args.Args, config.gradle.mappings, true)
}

return nargs
return args.Args
}

// FindGradle finds and executes gradlew/gradle
Expand Down

0 comments on commit 5cef4c3

Please sign in to comment.