Skip to main content

non_blank

Function non_blank 

Source
pub(crate) fn non_blank(value: Option<String>) -> Option<String>
Expand description

Trim a value, discarding it if nothing is left.

An environment variable set to the empty string is how a shell spells “unset” often enough that treating it as a real value would be a trap.