Skip to content

Commit

Permalink
Remove useless Math.sign call
Browse files Browse the repository at this point in the history
  • Loading branch information
tihonove committed Oct 8, 2018
1 parent 4fa4469 commit dca57d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/jsx-sort-props.js
Expand Up @@ -107,7 +107,7 @@ const generateFixerFunction = (node, context, reservedList) => {
});
});

fixers.sort((a, b) => Math.sign(b.range[0] - a.range[0]));
fixers.sort((a, b) => b.range[0] - a.range[0]);

const rangeStart = fixers[fixers.length - 1].range[0];
const rangeEnd = fixers[0].range[1];
Expand Down

0 comments on commit dca57d1

Please sign in to comment.