opossum-prometheus icon indicating copy to clipboard operation
opossum-prometheus copied to clipboard

this._interval is void

Open afuechsel opened this issue 2 years ago • 0 comments

While creating the types for typescript I was a bit surprised by this line:

    readonly interval: void;

this._interval is set here to the value returned by collectDefaultMetrics. But this is void (see here).

The value from this._interval is then been used here, which does not make any sense, as it is still void.

afuechsel avatar May 25 '22 12:05 afuechsel