MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / require_review_preview_identity

Function require_review_preview_identity

atomic-cli/src/commands/rpc.rs:7274–7282  ·  view source on GitHub ↗
(
    expected: Option<&str>,
    returned: Option<&str>,
)

Source from the content-addressed store, hash-verified

7272}
7273
7274fn require_review_preview_identity(
7275 expected: Option<&str>,
7276 returned: Option<&str>,
7277) -> CliResult<()> {
7278 if expected.is_some() && expected != returned {
7279 return Err(CliError::InvalidArgument { message: "the repository service did not resolve the requested review preview; update/restart it before retrying".into() });
7280 }
7281 Ok(())
7282}
7283
7284#[cfg(test)]
7285mod intent_review_preview_tests {

Callers 1

intent_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected