Simplify code

This commit is contained in:
Yves
2025-03-11 12:44:39 +01:00
parent 215ee05ef1
commit 644d2d4d9e

View File

@@ -64,11 +64,7 @@ bool HttpServer::IsRunningOnMachine(ClientContext &context) {
auto local_url = StringUtil::Format("http://localhost:%d", local_port); auto local_url = StringUtil::Format("http://localhost:%d", local_port);
httplib::Client client(local_url); httplib::Client client(local_url);
auto result = client.Get("/info"); return client.Get("/info");
if (result) {
return true;
}
return false;
} }
bool HttpServer::Started() { bool HttpServer::Started() {