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

Function non_empty_or

crates/openshell-tui/src/ui/sandbox_draft.rs:681–683  ·  view source on GitHub ↗
(value: &'a str, fallback: &'a str)

Source from the content-addressed store, hash-verified

679}
680
681fn non_empty_or<'a>(value: &'a str, fallback: &'a str) -> &'a str {
682 if value.is_empty() { fallback } else { value }
683}
684
685fn format_short_time(epoch_ms: i64) -> String {
686 if epoch_ms <= 0 {

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected