diff --git a/offchain/data/src/config.rs b/offchain/data/src/config.rs index cf4bf4270..e93c514d5 100644 --- a/offchain/data/src/config.rs +++ b/offchain/data/src/config.rs @@ -50,7 +50,7 @@ impl From for RepositoryConfig { let redacted_endpoint = match cli_config.postgres_endpoint { None => None, Some(endpoint) => { - if endpoint == "" { + if endpoint.is_empty() { None } else { Some(RedactedUrl::new(