Skip to content

Commit

Permalink
Move onto one line
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverdunk committed Jul 26, 2024
1 parent e56f9ac commit 3afa165
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/lib/feature-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export class FeatureQuery {

// Filter (potentially) by channel. Choose the most released channel (e.g., 'stable' over 'beta').
const bestChannel = q.reduce((channel, spec) => mostReleasedChannel(channel, spec.channel ?? "stable"), /** @type {chromeTypes.Channel | undefined} */(undefined));
const bestChannelFilter = q.filter(({ channel }) => channel === bestChannel || (bestChannel === "stable" && typeof channel === "undefined"));
const bestChannelFilter = q.filter(({ channel }) => {
return channel === bestChannel || (bestChannel === "stable" && !channel);
});
if (bestChannelFilter.length === 1) {
return bestChannelFilter[0];
}
Expand Down

0 comments on commit 3afa165

Please sign in to comment.