Fix code style errors

Remove extra whitespace, use more consistent spacing, add missing
semicolons, using dangling commas, break up long lines, consistent
multiline operator placement, add missing JSDoc strings and so on.
This commit is contained in:
Hornwitser committed 2023-11-19 04:48:38 +01:00
1 parent 97e05c0610
commit 7314dc99c8
71 files changed
+403 -290

No files matched your search

+2 -1
View File
@@ -1188,7 +1188,7 @@ class HistogramChild {
protected _bucketValues: Map<string, number>;
protected _sumValues: Map<string, number>;
protected _countValues: Map<string, number>;
protected _key: string
protected _key: string;
protected _bucketKeys: Map<number, string>;
constructor(collector: Histogram, key: string) {
@@ -1438,6 +1438,7 @@ export class Histogram extends LabeledCollector<HistogramChild> {
* Observe a given value and increment matching buckets
*
* Note: Only works if this is an unlabeled collector.
* @param value - number to count into histogram buckets.
*/
observe(value: number) {
this._defaultChild!.observe(value);