Skip to content

Commit 43b0f51

Browse files
committed
try another thing
1 parent 6c0694b commit 43b0f51

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/main.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,9 @@ namespace irods::plugin::rule_engine::audit_amqp
209209
std::stringstream endpoint_ss;
210210

211211
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 << "://";
212+
if (scheme_cfg != endpoint_cfg.end()) {
213+
endpoint_ss << scheme_cfg->get_ref<const std::string&>() << "://";
214+
}
218215

219216
const auto& host = endpoint_cfg.at("host").get_ref<const std::string&>();
220217
endpoint_ss << host;

0 commit comments

Comments
 (0)