Skip to content

Commit

Permalink
unused param in action converter
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Oct 11, 2023
1 parent 1131dfe commit 817667b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/agent/job_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ func ApiTaskToStructsTask(job *structs.Job, group *structs.TaskGroup,
}

for _, action := range apiTask.Actions {
act := ApiActionToStructsAction(job, action, &structs.Action{})
act := ApiActionToStructsAction(job, action)
structsTask.Actions = append(structsTask.Actions, act)
}
}
Expand Down Expand Up @@ -1390,7 +1390,7 @@ func ApiCSIPluginConfigToStructsCSIPluginConfig(apiConfig *api.TaskCSIPluginConf
return sc
}

func ApiActionToStructsAction(job *structs.Job, action *api.Action, act *structs.Action) *structs.Action {
func ApiActionToStructsAction(job *structs.Job, action *api.Action) *structs.Action {
return &structs.Action{
Name: action.Name,
Args: slices.Clone(action.Args),
Expand Down

0 comments on commit 817667b

Please sign in to comment.