diff --git a/src/AppWrapper.h b/src/AppWrapper.h index 30af474..3bd999f 100644 --- a/src/AppWrapper.h +++ b/src/AppWrapper.h @@ -261,16 +261,11 @@ void uWS_App(const FunctionCallbackInfo &args) { /* Read the options object if any */ us_socket_context_options_t options = {}; + std::string keyFileName, certFileName, passphrase, dhParamsFileName, caFileName; if (args.Length() == 1) { Local optionsObject = Local::Cast(args[0]); - std::string keyFileName; - std::string certFileName; - std::string passphrase; - std::string dhParamsFileName; - std::string caFileName; - /* Key file name */ NativeString keyFileNameValue(isolate, optionsObject->Get(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "key_file_name", NewStringType::kNormal).ToLocalChecked()).ToLocalChecked()); if (keyFileNameValue.isInvalid(args)) {