Skip to content

Commit 541e658

Browse files
fix: address Copilot PR review comments
Signed-off-by: Jonathan Norris <[email protected]>
1 parent c00221e commit 541e658

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

packages/server/src/provider/multi-provider/multi-provider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ export class MultiProvider implements Provider {
330330
try {
331331
providerEntry.provider.track?.(trackingEventName, context, trackingEventDetails);
332332
} catch (error) {
333-
// TODO: how should we handle errors?
334333
// Log error but don't throw - tracking shouldn't break application flow
335334
this.logger.error(
336335
`Error tracking event "${trackingEventName}" with provider "${providerEntry.name}":`,

packages/server/src/provider/multi-provider/strategies/first-successful-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BaseEvaluationStrategy } from './base-evaluation-strategy';
33
import type { EvaluationContext, FlagValue } from '@openfeature/core';
44

55
/**
6-
* Return the first result that did result in an error
6+
* Return the first result that did NOT result in an error
77
* If any provider in the course of evaluation returns or throws an error, ignore it as long as there is a successful result
88
* If there is no successful result, throw all errors
99
*/

packages/web/src/provider/multi-provider/strategies/first-successful-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BaseEvaluationStrategy } from './base-evaluation-strategy';
33
import type { EvaluationContext, FlagValue } from '@openfeature/core';
44

55
/**
6-
* Return the first result that did result in an error
6+
* Return the first result that did NOT result in an error
77
* If any provider in the course of evaluation returns or throws an error, ignore it as long as there is a successful result
88
* If there is no successful result, throw all errors
99
*/

packages/web/test/multi-provider-web.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
import { FirstMatchStrategy } from '../src/provider/multi-provider/strategies';
2424
import { FirstSuccessfulStrategy } from '../src/provider/multi-provider/strategies';
2525
import { ComparisonStrategy } from '../src/provider/multi-provider/strategies';
26-
// import type { BaseEvaluationStrategy } from '../src/provider/multi-provider/strategies/BaseEvaluationStrategy';
2726

2827
class TestProvider implements Provider {
2928
public metadata: ProviderMetadata = {

0 commit comments

Comments
 (0)