Skip to content

Commit

Permalink
fix: simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Nov 25, 2024
1 parent b5d064e commit bd5c725
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/experiment-browser/src/experimentClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ export class ExperimentClient implements Client {
flagConfigPollingIntervalMillis:
config.flagConfigPollingIntervalMillis < minFlagPollerIntervalMillis
? minFlagPollerIntervalMillis
: config.flagConfigPollingIntervalMillis
? config.flagConfigPollingIntervalMillis
: Defaults.flagConfigPollingIntervalMillis,
: config.flagConfigPollingIntervalMillis ??
Defaults.flagConfigPollingIntervalMillis,
};
this.poller = new Poller(
() => this.doFlags(),
Expand Down

0 comments on commit bd5c725

Please sign in to comment.