Skip to content

Commit 6a7fb15

Browse files
committed
fix
1 parent 7d7c94b commit 6a7fb15

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/runtime/input/protocol/nats/options.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,13 @@ pub fn build_nats_options(properties: &HashMap<String, String>) -> nats::Options
7777
opts
7878
};
7979

80-
let opts = if let Some(ca) =
80+
if let Some(ca) =
8181
get_prop(properties, "root_certificate").or_else(|| get_prop(properties, "tls_ca"))
8282
{
8383
opts.add_root_certificate(Path::new(ca))
8484
} else {
8585
opts
86-
};
87-
88-
opts
86+
}
8987
}
9088

9189
/// Connect to NATS using URL and properties (auth, name, TLS, etc.).

0 commit comments

Comments
 (0)