diff --git a/src/data/config.rs b/src/data/config.rs index 42b20ff..7e18bc1 100644 --- a/src/data/config.rs +++ b/src/data/config.rs @@ -195,7 +195,11 @@ impl Config { .collect(), link: parsed_banner["link"].as_str() .map(str::to_string) - .map(Self::parse_string_val), + .map(Self::parse_string_val) + .and_then(|s| match s.is_empty() { + true => None, + false => Some(s) + }), }) };