Skip to content

Commit 6364e5a

Browse files
author
NarrowsProjects
committed
chore: use array destructuring to fix eslint issue
1 parent 38afd8f commit 6364e5a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/domain/dtos/filters/RunFilterDto.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ exports.RunFilterDto = Joi.object({
8989

9090
gaq: Joi.object({
9191
notBadFraction: FloatComparisonDto.custom((value, helpers) => {
92-
// eslint-disable-next-line prefer-destructuring
93-
const { dataPassIds } = helpers.state.ancestors[1];
92+
const [, { dataPassIds }] = helpers.state.ancestors;
9493

9594
if (!dataPassIds || dataPassIds.length !== 1) {
9695
return helpers.message('Filtering by GAQ is enabled only when filtering with one dataPassId');

0 commit comments

Comments
 (0)