Skip to content

Commit

Permalink
fix: linting (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVolland authored Jan 14, 2025
1 parent 170068e commit f0563be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SldStyleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ export class SldStyleParser implements StyleParser<string> {
const comparisonOperator: ComparisonOperator = COMPARISON_MAP[sldOperatorName] as ComparisonOperator;
const filterIsFunction = !!get(sldFilter, 'Function');
let args: any[] = [];

const children = get(sldFilter, filterIsFunction ? 'Function' : sldOperatorName) || [];
const childrenToArgs = function (child: any, index: number) {
const propName = get([child], 'PropertyName.#text');
if (propName !== undefined) {
Expand All @@ -684,8 +686,6 @@ export class SldStyleParser implements StyleParser<string> {
return get([child], '#text');
}
};

const children = get(sldFilter, filterIsFunction ? 'Function' : sldOperatorName) || [];
args = children.map(childrenToArgs);

if (sldOperatorName === 'PropertyIsNull') {
Expand Down

0 comments on commit f0563be

Please sign in to comment.