8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2f0b0a commit 9591882Copy full SHA for 9591882
arangod/Agency/v8-agency.cpp
@@ -46,12 +46,7 @@ static void JS_EnabledAgent(v8::FunctionCallbackInfo<v8::Value> const& args) {
46
TRI_V8_TRY_CATCH_BEGIN(isolate);
47
v8::HandleScope scope(isolate);
48
49
- try {
50
- ApplicationServer::getEnabledFeature<AgencyFeature>("Agency");
51
- TRI_V8_RETURN_TRUE();
52
- } catch (std::exception const& e) {
53
- TRI_V8_RETURN_FALSE();
54
- }
+ TRI_V8_RETURN(v8::Boolean::New(isolate, ApplicationServer::server->isEnabled("Agency")));
55
56
TRI_V8_TRY_CATCH_END
57
0 commit comments