Skip to content

Commit

Permalink
fix(cli): Ensure uninit runs only when initalized
Browse files Browse the repository at this point in the history
  • Loading branch information
tingerrr committed Aug 23, 2024
1 parent c87318a commit bad4b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/typst-test-cli/src/cli/uninit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Report for InitReport<'_> {
}

pub fn run(ctx: &mut Context, args: &Args) -> anyhow::Result<()> {
let mut project = ctx.ensure_project()?;
let mut project = ctx.ensure_init()?;
project.collect_tests(test_set::builtin::all())?;

let len = project.matched().len() + project.filtered().len();
Expand Down

0 comments on commit bad4b80

Please sign in to comment.