Skip to content

Commit

Permalink
Simplifying result packaging
Browse files Browse the repository at this point in the history
Co-authored-by: Fredrik Adelöw <[email protected]>
Signed-off-by: Jordan Snow <[email protected]>
  • Loading branch information
SnowBlitzer and freben authored Oct 3, 2024
1 parent cec8e8c commit 3337936
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/catalog/src/alpha/filter/parseFilterExpression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,8 @@ export function splitFilterExpression(
}
const key = match[2];
const parameters = match[3].split(',').filter(Boolean); // silently ignore double commas
if (match[1]) {
result.push({ key, parameters, negation: true });
} else {
result.push({ key, parameters, negation: false });
}
const negation = Boolean(match[1]);
result.push({ key, parameters, negation });
}

return result;
Expand Down

0 comments on commit 3337936

Please sign in to comment.