Revert “log the error”
- ID
f014bd0- date
2022-10-16 22:08:43+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
302202f- message
Revert "log the error" d12b7fe156101dbb3deb67ec0820b6ee30c95a2d- changed files
1 file, 1 addition, 8 deletions
Changed files
src/get_bytes.rs (4425) → src/get_bytes.rs (4306)
diff --git a/src/get_bytes.rs b/src/get_bytes.rs
index b620f39..eb90bba 100644
--- a/src/get_bytes.rs
+++ b/src/get_bytes.rs
@@ -53,14 +53,7 @@ pub fn get_bytes_for_gif(path: &str) -> Vec<u8> {
//
// For that reason, we select a sample of up to 50 frames and use those
// as the basis for analysis.
- let frames: Vec<Frame> = match decoder.into_frames().collect_frames() {
- Ok(f) => f,
- Err(e) => {
- println!("{:?}", e);
- panic!("BOOM!");
- },
-
- };
+ let frames: Vec<Frame> = decoder.into_frames().collect_frames().unwrap();
// How this works: it tells us we should be looking at the nth frame.
// Examples: