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

Function server_urls_match

atomic-cli/src/commands/identity/register.rs:430–434  ·  view source on GitHub ↗
(configured: Option<&str>, registered: &str)

Source from the content-addressed store, hash-verified

428}
429
430fn server_urls_match(configured: Option<&str>, registered: &str) -> bool {
431 configured
432 .map(|url| url.trim_end_matches('/') == registered.trim_end_matches('/'))
433 .unwrap_or(false)
434}
435
436/// Derive a short profile name from a server URL.
437///

Callers 1

apply_registrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected