Skip to content

Commit

Permalink
refactor(prqlc cli): simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Jan 30, 2025
1 parent e798202 commit ad9f92e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions prqlc/prqlc/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,16 +333,7 @@ impl Command {
}

fn list_targets(&self) -> std::result::Result<(), anyhow::Error> {
let res: Result<std::string::String, anyhow::Error> = Ok(match self {
Command::ListTargets => Target::names().join("\n"),
_ => unreachable!(),
});

match res {
Ok(s) => println!("{s}"),
Err(_) => unreachable!(),
}

println!("{}", Target::names().join("\n"));
Ok(())
}

Expand Down

0 comments on commit ad9f92e

Please sign in to comment.