Skip to content

Commit

Permalink
Fixing lint issue in updated validate return, v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Saru2003 committed Oct 23, 2024
1 parent 36911fc commit 7ca992a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions martin/src/pg/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ impl PgConfig {
if pool_size < 1 {
return Err(PgError::ConfigError(
"pool_size must be greater than or equal to 1.",
));
));
}
}
if self.connection_string.is_none() {
return Err(PgError::ConfigError(
"A connection string must be provided.",
));
));
}

Ok(())
Expand Down

0 comments on commit 7ca992a

Please sign in to comment.