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);
|
||||
|
||||
httplib::Client client(local_url);
|
||||
auto result = client.Get("/info");
|
||||
if (result) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return client.Get("/info");
|
||||
}
|
||||
|
||||
bool HttpServer::Started() {
|
||||
|
||||
Reference in New Issue
Block a user