Skip to content

Commit

Permalink
Use bind for inline functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier committed Nov 15, 2024
1 parent e4e0882 commit b91bc29
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/lib/features/instance-stats/instance-stats-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,16 +317,21 @@ export class InstanceStatsService {
this.countPreviousDayHourlyMetricsBuckets(),
this.memorize(
'maxFeatureEnvironmentStrategies',
this.featureStrategiesReadModel
.getMaxFeatureEnvironmentStrategies,
this.featureStrategiesReadModel.getMaxFeatureEnvironmentStrategies.bind(
this.featureStrategiesReadModel,
),
),
this.memorize(
'maxConstraintValues',
this.featureStrategiesReadModel.getMaxConstraintValues,
this.featureStrategiesReadModel.getMaxConstraintValues.bind(
this.featureStrategiesReadModel,
),
),
this.memorize(
'maxConstraintsPerStrategy',
this.featureStrategiesReadModel.getMaxConstraintsPerStrategy,
this.featureStrategiesReadModel.getMaxConstraintsPerStrategy.bind(
this.featureStrategiesReadModel,
),
),
]);

Expand Down

0 comments on commit b91bc29

Please sign in to comment.