Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 3, 2021
1 parent 0d2a9cd commit 8987ee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/combination/tasks/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const listTasks = async function (runners, cwd) {
getDimensionsTasks(dimensions, noDimensions, cwd),
),
)
return tasks.flat().filter(removeDuplicateTaskId)
return tasks.flat().filter(isUniqueTaskId)
}

const getDimension = function (runner) {
Expand All @@ -110,6 +110,6 @@ const getDimensionsTasks = async function ({ runner }, noDimensions, cwd) {
// - `config.runnerConfig.{runnerId}.tasks` over `config.tasks`
// - `tasks` array order
// This allows overridding tasks when using shared configurations.
const removeDuplicateTaskId = function (task, index, tasks) {
const isUniqueTaskId = function (task, index, tasks) {
return tasks.slice(index + 1).every(({ id }) => id !== task.id)
}

0 comments on commit 8987ee4

Please sign in to comment.