Skip to content

Commit c6e0c98

Browse files
committed
fix
1 parent 0ad4bbe commit c6e0c98

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

zokrates_core/build.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ fn main() {
2626
});
2727

2828
let commit = Oid::from_str(LIBSNARK_COMMIT).unwrap();
29-
let commit = repo.find_commit(commit).unwrap();
30-
31-
repo.reset(&commit.as_object(), ResetType::Hard, None)
32-
.unwrap();
29+
let _ = repo
30+
.find_commit(commit)
31+
.and_then(|commit| repo.reset(&commit.as_object(), ResetType::Hard, None));
3332

3433
for mut s in repo.submodules().unwrap() {
3534
s.update(true, None).unwrap();

0 commit comments

Comments
 (0)