Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
revert: replace arrow function back with unnamed function
This reverts commit 12fa02c.
  • Loading branch information
petrzjunior committed Oct 13, 2021
1 parent 832d5f6 commit 3e7ac1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metrics/decorators/common.ts
Expand Up @@ -39,8 +39,8 @@ export const OtelMethodCounter = (
const description = `app_${className}#${propertyKey.toString()} called total`;
let counterMetric: Counter;
const methodFunc = descriptor.value;
// eslint-disable-next-line no-param-reassign
descriptor.value = (...args: any[]) => {
// eslint-disable-next-line no-param-reassign, func-names
descriptor.value = function (...args: any[]) {
if (!counterMetric) {
counterMetric = getOrCreateCounter(name, MetricType.Counter, { description, ...options });
}
Expand Down

0 comments on commit 3e7ac1f

Please sign in to comment.