Get the Remote Project for a Database
(database: &Database)
| 65 | |
| 66 | /// Get the Remote Project for a Database |
| 67 | pub fn get_for_local_database(database: &Database) -> Result<Option<Ref<Self>>, ()> { |
| 68 | // TODO: This sync should be removed? |
| 69 | if sync::pull_projects(database)? { |
| 70 | return Ok(None); |
| 71 | } |
| 72 | sync::get_remote_project_for_local_database(database) |
| 73 | } |
| 74 | |
| 75 | /// Get the Remote Project for a BinaryView |
| 76 | pub fn get_for_binaryview(bv: &BinaryView) -> Result<Option<Ref<Self>>, ()> { |
nothing calls this directly
no test coverage detected