Skip to content

Commit

Permalink
sort-comp #1858 PR amendments
Browse files Browse the repository at this point in the history
  • Loading branch information
nosilleg committed Jun 29, 2018
1 parent 2f56e47 commit 0b0e462
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/rules/sort-comp.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ module.exports = {
function getRefPropIndexes(method) {
const methodGroupIndexes = [];

for (let groupIndex = 0; groupIndex < methodsOrder.length; groupIndex++) {
const currentGroup = methodsOrder[groupIndex];

methodsOrder.forEach((currentGroup, groupIndex) => {
switch (currentGroup) {
case 'getters': {
if (method.getter) {
Expand Down Expand Up @@ -218,7 +216,7 @@ module.exports = {
break;
}
}
}
});

// No matching pattern, return 'everything-else' index
if (methodGroupIndexes.length === 0) {
Expand Down

0 comments on commit 0b0e462

Please sign in to comment.