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:
parent
ba5d8bc628
commit
03e3d3ca21
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue