Add Runtime::has_repository()
This commit is contained in:
parent
d498ed75d9
commit
e0a390d840
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ impl<'a> Runtime<'a> {
|
|||
res
|
||||
}
|
||||
|
||||
pub fn has_repository(&self) -> bool {
|
||||
self.repository.is_some()
|
||||
}
|
||||
|
||||
pub fn has_config(&self) -> bool {
|
||||
self.config.is_some()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue