From 03e3d3ca216801baedacb417da555bcbd1ad965b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 9 Aug 2022 20:05:11 -0400 Subject: [PATCH] Simplify index file return --- src/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.rs b/src/index.rs index 8062f9a..e02bd0a 100755 --- a/src/index.rs +++ b/src/index.rs @@ -77,6 +77,6 @@ impl IndexFile { let mut index_file = std::fs::File::open(path) .expect("Failed to read index file."); - Some(IndexFile::read(&mut index_file).ok()?) + IndexFile::read(&mut index_file).ok() } } \ No newline at end of file