Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jan 29, 2025
1 parent c643afd commit 428c642
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/deno_task_shell/src/shell/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1471,8 +1471,7 @@ fn evaluate_word_parts(
} else if let Some(val) =
state.get_var(&name).map(|v| v.to_string())
{
let mut t: Text = Text::new([].to_vec());
t.parts.push(OtherText(val.clone().to_string()));
let t: Text = Text::new([OtherText(val.clone().to_string())].to_vec());
Ok(Some(t))
} else {
Err(miette::miette!("Undefined variable: {}", name))
Expand Down

0 comments on commit 428c642

Please sign in to comment.