Skip to content

Commit

Permalink
misc: small fix or general refactoring i did not bother commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Feb 4, 2025
1 parent ceecd27 commit 71c4d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async fn run_task(args: Args, for_workflow: bool) -> Result<HashMap<String, Stri
}

fn get_workflow_task_args(
args: Args,
args: &Args,
task_name: &str,
workflow: &Workflow,
generator: Option<String>,
Expand Down Expand Up @@ -80,7 +80,7 @@ async fn run_workflow(args: Args, workflow: &String) -> Result<()> {
for (task_name, task) in &workflow.tasks {
// create the task specific arguments
let task_args =
get_workflow_task_args(args.clone(), &task_name, &workflow, task.generator.clone());
get_workflow_task_args(&args, &task_name, &workflow, task.generator.clone());
// run the task as part of the workflow
let variables = run_task(task_args, true).await?;
// define variables for the next task
Expand Down

0 comments on commit 71c4d5b

Please sign in to comment.