Skip to content

Commit

Permalink
Update transform_files.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Oct 31, 2022
1 parent 6433c0b commit 6ebf5ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/transform_files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ function transformClass(type, raw, options = {}) {
const duplicateMethods = _.differenceWith(
methods,
_.uniqBy(methods, 'node.key.name'),
(a, b) => a !== b
(a, b) => a === b
);
if (duplicateMethods.length > 0) {
throw new Error(
`${name}: duplicate methods found: ${_.map(
duplicateProps,
duplicateMethods,
'node.key.name'
)}`
);
Expand Down

0 comments on commit 6ebf5ff

Please sign in to comment.