Skip to content

Commit 2de60c7

Browse files
committed
fix lint
1 parent fecb0d4 commit 2de60c7

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

src/histogram.cc

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -646,11 +646,10 @@ void ELDNativeHistogram::RegisterExternalReferences(
646646
}
647647

648648
ELDNativeHistogram::ELDNativeHistogram(Environment* env, Local<Object> wrap)
649-
: HandleWrap(
650-
env,
651-
wrap,
652-
reinterpret_cast<uv_handle_t*>(&check_),
653-
AsyncWrap::PROVIDER_ELDNATIVEHISTOGRAM),
649+
: HandleWrap(env,
650+
wrap,
651+
reinterpret_cast<uv_handle_t*>(&check_),
652+
AsyncWrap::PROVIDER_ELDNATIVEHISTOGRAM),
654653
HistogramImpl() {
655654
MakeWeak();
656655
wrap->SetAlignedPointerInInternalField(
@@ -660,8 +659,7 @@ ELDNativeHistogram::ELDNativeHistogram(Environment* env, Local<Object> wrap)
660659
uv_check_init(env->event_loop(), &check_);
661660
}
662661

663-
BaseObjectPtr<ELDNativeHistogram> ELDNativeHistogram::Create(
664-
Environment* env) {
662+
BaseObjectPtr<ELDNativeHistogram> ELDNativeHistogram::Create(Environment* env) {
665663
Local<Object> obj;
666664
if (!GetConstructorTemplate(env)
667665
->InstanceTemplate()
@@ -684,8 +682,7 @@ void ELDNativeHistogram::CheckCB(uv_check_t* handle) {
684682
uint64_t idle = idle_now - histogram->prev_idle_time_;
685683
if (idle > total) idle = total;
686684
int64_t busy = static_cast<int64_t>(total - idle);
687-
if (busy > 0)
688-
histogram->histogram()->Record(busy);
685+
if (busy > 0) histogram->histogram()->Record(busy);
689686
}
690687

691688
histogram->prev_hrtime_ = now;
@@ -738,8 +735,8 @@ void ELDNativeHistogram::FastStop(Local<Value> receiver) {
738735
histogram->OnStop();
739736
}
740737

741-
std::unique_ptr<worker::TransferData>
742-
ELDNativeHistogram::CloneForMessaging() const {
738+
std::unique_ptr<worker::TransferData> ELDNativeHistogram::CloneForMessaging()
739+
const {
743740
return std::make_unique<HistogramBase::HistogramTransferData>(histogram());
744741
}
745742

src/node_perf.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@ void CreateELDHistogram(const FunctionCallbackInfo<Value>& args) {
286286
if (args[1]->IsTrue()) {
287287
BaseObjectPtr<ELDNativeHistogram> histogram =
288288
ELDNativeHistogram::Create(env);
289-
if (histogram)
290-
args.GetReturnValue().Set(histogram->object());
289+
if (histogram) args.GetReturnValue().Set(histogram->object());
291290
return;
292291
}
293292

0 commit comments

Comments
 (0)