Add Runtime::repository()

This commit is contained in:
Matthias Beyer 2016-07-22 14:47:52 +02:00
parent edd37b0e88
commit 57fbeb54e7

View file

@ -65,5 +65,9 @@ impl<'a> Runtime<'a> {
})
}
pub fn repository(&self) -> Result<&Repository> {
self.repository.as_ref().ok_or(GHEK::MkRepo.into_error())
}
}