Skip to content

Commit

Permalink
Do not use default flags
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyBitz committed May 22, 2024
1 parent ee15276 commit 339e577
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/web/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,6 @@ export async function track(
keys.forEach((key) => {
flagValuesToReport[key] = allFlagValues[key];
});
} else {
// If no `options.flags` was provided, we'll take the first 5 flags
// from the `allFlagValues` list and report them.
const MAX_FLAG_KEYS = 5;
const keys = Object.keys(allFlagValues);
keys.slice(0, MAX_FLAG_KEYS).forEach((key) => {
flagValuesToReport[key] = allFlagValues[key];
});
}

const body = {
Expand Down

0 comments on commit 339e577

Please sign in to comment.