Skip to content

Commit

Permalink
chore: make comparison to empty clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstanley committed Sep 29, 2023
1 parent db58347 commit 320f1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion offchain/data/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl From<RepositoryCLIConfig> 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(
Expand Down

0 comments on commit 320f1a2

Please sign in to comment.