We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c0694b commit 43b0f51Copy full SHA for 43b0f51
1 file changed
src/main.cpp
@@ -209,12 +209,9 @@ namespace irods::plugin::rule_engine::audit_amqp
209
std::stringstream endpoint_ss;
210
211
const auto scheme_cfg = endpoint_cfg.find("scheme");
212
- // clang-format off
213
- const auto& scheme = scheme_cfg == endpoint_cfg.end()
214
- ? default_amqp_scheme
215
- : scheme_cfg->get_ref<const std::string&>();
216
- // clang-format on
217
- endpoint_ss << scheme << "://";
+ if (scheme_cfg != endpoint_cfg.end()) {
+ endpoint_ss << scheme_cfg->get_ref<const std::string&>() << "://";
+ }
218
219
const auto& host = endpoint_cfg.at("host").get_ref<const std::string&>();
220
endpoint_ss << host;
0 commit comments