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

Function server_urls_match

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

Source from the content-addressed store, hash-verified

408}
409
410fn server_urls_match(configured: Option<&str>, registered: &str) -> bool {
411 configured
412 .map(|url| url.trim_end_matches('/') == registered.trim_end_matches('/'))
413 .unwrap_or(false)
414}
415
416/// Derive a short profile name from a server URL.
417///

Callers 1

apply_registrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected