A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git.rs b/src/git.rs
index e0d0628..2f4da65 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -5,7 +5,7 @@ use imara_diff::InternedInput;
use ropey::Rope;
pub fn load(p: &Path, ws: &Path) -> Result<Vec<u8>, git2::Error> {
- let r = Repository::open(ws).unwrap();
+ let r = Repository::open(ws)?;
let o =
r.head()?.peel_to_commit()?.tree()?.get_path(p)?.to_object(&r)?;
let blob = o