mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Made the code more DRY
This commit is contained in:
committed by
Alex Dadgar
parent
041f48dc71
commit
c01f2a38f5
@@ -133,8 +133,8 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
|
||||
|
||||
// Build the argument list.
|
||||
args = append(args, "-jar", filepath.Join(allocdir.TaskLocal, jarName))
|
||||
if argRaw := driverConfig.Args; argRaw != "" {
|
||||
args = append(args, argRaw)
|
||||
if driverConfig.Args != "" {
|
||||
args = append(args, driverConfig.Args)
|
||||
}
|
||||
|
||||
// Setup the command
|
||||
|
||||
Reference in New Issue
Block a user