From 2d7d21f5f70cb1b47527b137df12a57b30e71474 Mon Sep 17 00:00:00 2001 From: Cory Forsstrom Date: Thu, 4 Apr 2024 14:52:23 -0700 Subject: [PATCH] Don't reread cert path when key is missing --- data/src/config/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/src/config/server.rs b/data/src/config/server.rs index cb147efbe..1325ea4c9 100644 --- a/data/src/config/server.rs +++ b/data/src/config/server.rs @@ -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 }