MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / non_empty_or

Function non_empty_or

crates/openshell-cli/src/run.rs:7818–7820  ·  view source on GitHub ↗
(value: &'a str, fallback: &'a str)

Source from the content-addressed store, hash-verified

7816}
7817
7818fn non_empty_or<'a>(value: &'a str, fallback: &'a str) -> &'a str {
7819 if value.is_empty() { fallback } else { value }
7820}
7821
7822/// Format a millisecond timestamp into a readable string.
7823fn format_timestamp_ms(ms: i64) -> String {

Callers 1

format_endpointFunction · 0.70

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected