Add Runtime::repository()
This commit is contained in:
parent
edd37b0e88
commit
57fbeb54e7
1 changed files with 4 additions and 0 deletions
|
@ -65,5 +65,9 @@ impl<'a> Runtime<'a> {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn repository(&self) -> Result<&Repository> {
|
||||
self.repository.as_ref().ok_or(GHEK::MkRepo.into_error())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue