Skip to content

Commit

Permalink
Don't reread cert path when key is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Apr 4, 2024
1 parent 364db2e commit 2d7d21f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/src/config/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ impl Sasl {
}

fn external_key(&self) -> Option<&PathBuf> {
if let Self::External { cert, key, .. } = self {
Some(key.as_ref().unwrap_or(cert))
if let Self::External { key, .. } = self {
key.as_ref()
} else {
None
}
Expand Down

0 comments on commit 2d7d21f

Please sign in to comment.