Skip to content

Commit e25175d

Browse files
committed
chore: remove unused parameter
1 parent 8cae984 commit e25175d

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

src/__tests__/data.test.ts

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,9 @@ describe('XMLParser', () => {
125125
},
126126
};
127127

128-
let result = parse(
129-
xmlData,
130-
{
131-
//attributeNamePrefix: "",
132-
133-
//dynamicTypingAttributeValue: true,
134-
allowBooleanAttributes: true,
135-
},
136-
true,
137-
);
128+
let result = parse(xmlData, {
129+
allowBooleanAttributes: true,
130+
});
138131

139132
expect(result).toStrictEqual(expected);
140133
});
@@ -286,13 +279,9 @@ describe('XMLParser', () => {
286279
},
287280
};
288281

289-
const result = parse(
290-
xmlData,
291-
{
292-
allowBooleanAttributes: true,
293-
},
294-
true,
295-
);
282+
const result = parse(xmlData, {
283+
allowBooleanAttributes: true,
284+
});
296285
expect(result).toStrictEqual(expected);
297286
});
298287
});

src/parse.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import { traversableToJSON } from './traversableToJSON';
2828
export function parse(
2929
xmlData: string | Uint8Array | ArrayBufferLike,
3030
options: ParseOptions = {},
31-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
32-
_arg?: boolean,
3331
) {
3432
if (typeof xmlData === 'string') {
3533
const encoder = new TextEncoder();

0 commit comments

Comments
 (0)