Skip to content

Commit

Permalink
refactor(common): Remove a code redundancy
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau authored and sschuberth committed Jul 3, 2024
1 parent 78fb986 commit 81af6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/common/src/main/kotlin/CommandLineTool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ interface CommandLineTool {
* Run the command in the [workingDir] directory with arguments as specified by [args].
*/
fun run(workingDir: File?, vararg args: CharSequence) =
ProcessCapture(workingDir, *command(workingDir).splitOnWhitespace().toTypedArray(), *args).requireSuccess()
run(args = args, workingDir = workingDir, environment = emptyMap())

/**
* Get the version of the command by parsing its output.
Expand Down

0 comments on commit 81af6f8

Please sign in to comment.