Simplify code
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user