@@ -116,8 +116,8 @@ inline engine_config_ptr argumentsToEngineConfig(const Nan::FunctionCallbackInfo
116116
117117 if (args[0 ]->IsString ())
118118 {
119- engine_config->storage_config = osrm::StorageConfig (
120- *Nan::Utf8String (Nan::To<v8::String>(args[0 ]).ToLocalChecked ()));
119+ engine_config->storage_config =
120+ osrm::StorageConfig ( *Nan::Utf8String (Nan::To<v8::String>(args[0 ]).ToLocalChecked ()));
121121 engine_config->use_shared_memory = false ;
122122 return engine_config;
123123 }
@@ -292,8 +292,7 @@ inline engine_config_ptr argumentsToEngineConfig(const Nan::FunctionCallbackInfo
292292 if (max_locations_trip->IsNumber ())
293293 engine_config->max_locations_trip = Nan::To<int >(max_locations_trip).FromJust ();
294294 if (max_locations_viaroute->IsNumber ())
295- engine_config->max_locations_viaroute =
296- Nan::To<int >(max_locations_viaroute).FromJust ();
295+ engine_config->max_locations_viaroute = Nan::To<int >(max_locations_viaroute).FromJust ();
297296 if (max_locations_distance_table->IsNumber ())
298297 engine_config->max_locations_distance_table =
299298 Nan::To<int >(max_locations_distance_table).FromJust ();
@@ -537,7 +536,8 @@ inline bool argumentsToParameter(const Nan::FunctionCallbackInfo<v8::Value> &arg
537536 return false ;
538537 }
539538
540- params->bearings .push_back (osrm::Bearing{static_cast <short >(bearing), static_cast <short >(range)});
539+ params->bearings .push_back (
540+ osrm::Bearing{static_cast <short >(bearing), static_cast <short >(range)});
541541 }
542542 else
543543 {
@@ -587,8 +587,7 @@ inline bool argumentsToParameter(const Nan::FunctionCallbackInfo<v8::Value> &arg
587587 return false ;
588588 }
589589
590- params->hints .push_back (
591- osrm::engine::Hint::FromBase64 (*Nan::Utf8String (hint)));
590+ params->hints .push_back (osrm::engine::Hint::FromBase64 (*Nan::Utf8String (hint)));
592591 }
593592 else if (hint->IsNull ())
594593 {
@@ -1582,7 +1581,8 @@ argumentsToMatchParameter(const Nan::FunctionCallbackInfo<v8::Value> &args,
15821581 Nan::ThrowError (" Waypoints must correspond with the index of an input coordinate" );
15831582 return match_parameters_ptr ();
15841583 }
1585- params->waypoints .emplace_back (static_cast <unsigned >(Nan::To<unsigned >(waypoint_value).FromJust ()));
1584+ params->waypoints .emplace_back (
1585+ static_cast <unsigned >(Nan::To<unsigned >(waypoint_value).FromJust ()));
15861586 }
15871587 }
15881588
0 commit comments