Get the Remote for a BinaryView
(bv: &BinaryView)
| 147 | |
| 148 | /// Get the Remote for a BinaryView |
| 149 | pub fn get_remote_for_binary_view(bv: &BinaryView) -> Result<Option<Ref<Remote>>, ()> { |
| 150 | let Some(db) = bv.file().database() else { |
| 151 | return Ok(None); |
| 152 | }; |
| 153 | get_remote_for_local_database(&db) |
| 154 | } |
| 155 | |
| 156 | /// Get the Remote Project for a Database, returning the Remote project from one of the |
| 157 | /// connected remotes, or None if not found or if projects are not pulled |
no test coverage detected