Skip to content

Commit

Permalink
Replace unnecessary unwrap() with ?
Browse files Browse the repository at this point in the history
  • Loading branch information
acuteenvy committed May 7, 2024
1 parent 887f195 commit 1ad3c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl<'a> Cache<'a> {
let mut n_downloaded = 0;

for i in 0..archive.len() {
let mut page = archive.by_index(i).unwrap();
let mut page = archive.by_index(i)?;
let fname = page.name();

// Skip files that are not in a directory (we want only pages).
Expand Down

0 comments on commit 1ad3c57

Please sign in to comment.