Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/histogram.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void HistogramBase::GetPercentiles(const FunctionCallbackInfo<Value>& args) {
map->Set(
env->context(),
Number::New(env->isolate(), key),
Number::New(env->isolate(), static_cast<double>(value))).IsEmpty();
Number::New(env->isolate(), static_cast<double>(value)));
});
}

Expand All @@ -177,7 +177,7 @@ void HistogramBase::GetPercentilesBigInt(
map->Set(
env->context(),
Number::New(env->isolate(), key),
BigInt::New(env->isolate(), value)).IsEmpty();
BigInt::New(env->isolate(), value));
});
}

Expand Down Expand Up @@ -592,7 +592,7 @@ void IntervalHistogram::GetPercentiles(
map->Set(
env->context(),
Number::New(env->isolate(), key),
Number::New(env->isolate(), static_cast<double>(value))).IsEmpty();
Number::New(env->isolate(), static_cast<double>(value)));
});
}

Expand All @@ -607,7 +607,7 @@ void IntervalHistogram::GetPercentilesBigInt(
map->Set(
env->context(),
Number::New(env->isolate(), key),
BigInt::New(env->isolate(), value)).IsEmpty();
BigInt::New(env->isolate(), value));
});
}

Expand Down