Skip to content

Commit 4d7ce6e

Browse files
committed
deduplicate
1 parent 3f114cc commit 4d7ce6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/verify.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ pub fn verify(start_at: Option<&str>) -> Result<(), ()> {
2222
}
2323

2424
match i.get("mode").unwrap().as_str().unwrap() {
25-
"test" => test(i.get("path").unwrap().as_str().unwrap())?,
26-
"compile" => compile_only(i.get("path").unwrap().as_str().unwrap())?,
25+
"test" => test(path)?,
26+
"compile" => compile_only(path)?,
2727
_ => (),
2828
}
2929
}

0 commit comments

Comments
 (0)