Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeterminateSystems/flake-checker
/ value_or_empty_string
Function
value_or_empty_string
src/condition.rs:85–87 ·
view source on GitHub ↗
(value: Option<String>)
Source
from the content-addressed store, hash-verified
83
}
84
85
fn value_or_empty_string(value: Option<String>) -> Value {
86
Value::from(value.unwrap_or(String::from(
""
)))
87
}
88
89
fn value_or_zero(value: Option<i64>) -> Value {
90
Value::from(value.unwrap_or(0))
Callers
1
add_cel_variables
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected