Skip to content

Commit

Permalink
run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
prsabahrami committed Sep 6, 2024
1 parent 1e06f2e commit e0f1d4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/deno_task_shell/src/shell/commands/cd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ impl ShellCommand for CdCommand {
fn execute_cd(cwd: &Path, args: Vec<String>) -> Result<PathBuf> {
let path = parse_args(args)?;
let new_dir = if path == "~" {
dirs::home_dir().ok_or_else(|| anyhow::anyhow!("Home directory not found"))?
dirs::home_dir()
.ok_or_else(|| anyhow::anyhow!("Home directory not found"))?
} else {
cwd.join(&path)
};
Expand Down

0 comments on commit e0f1d4b

Please sign in to comment.