1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-22 12:47:45 +00:00

Simplify index file return

This commit is contained in:
Joshua Goins 2022-08-09 20:05:11 -04:00
parent ba5d8bc628
commit 03e3d3ca21

View file

@ -77,6 +77,6 @@ impl IndexFile {
let mut index_file = std::fs::File::open(path) let mut index_file = std::fs::File::open(path)
.expect("Failed to read index file."); .expect("Failed to read index file.");
Some(IndexFile::read(&mut index_file).ok()?) IndexFile::read(&mut index_file).ok()
} }
} }