From c172b3c83e029982aff4e5b260fe35522fc6b12a Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 25 Mar 2025 12:43:04 -0500 Subject: [PATCH] removed debug statements --- repertory/repertory/src/ui/handlers.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/repertory/repertory/src/ui/handlers.cpp b/repertory/repertory/src/ui/handlers.cpp index da296443..2abfbaa6 100644 --- a/repertory/repertory/src/ui/handlers.cpp +++ b/repertory/repertory/src/ui/handlers.cpp @@ -438,9 +438,7 @@ void handlers::handle_get_mount_status(const httplib::Request &req, auto lines = launch_process(prov, name, {"-status"}); - auto result{ - nlohmann::json::parse(utils::string::join(lines, '\n')), - }; + auto result = nlohmann::json::parse(utils::string::join(lines, '\n')); if (result.at("Location").get().empty()) { result.at("Location") = config_->get_mount_location(prov, name); } else if (result.at("Active").get()) { @@ -578,7 +576,7 @@ void handlers::handle_put_set_value_by_name(const httplib::Request &req, void handlers::handle_put_settings(const httplib::Request &req, httplib::Response &res) const { - nlohmann::json data = nlohmann::json::parse(req.get_param_value("data")); + auto data = nlohmann::json::parse(req.get_param_value("data")); if (data.contains(JSON_API_PASSWORD)) { auto password = decrypt(data.at(JSON_API_PASSWORD).get(),