Skip to content

Commit ff3c69b

Browse files
committed
Remove unused code
1 parent 23ec2af commit ff3c69b

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

lib/createExpectedPropertiesOrder.js

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
1-
const _ = require('lodash');
2-
31
module.exports = function createExpectedPropertiesOrder(input) {
42
const order = {};
53

6-
if (_.isPlainObject(input[0])) {
7-
let propertyIndex = 0;
8-
9-
input.forEach((group, groupIndex) => {
10-
group.properties.forEach(property => {
11-
order[property] = {
12-
propertyIndex,
13-
groupIndex,
14-
emptyLineBefore: group.emptyLineBefore,
15-
};
16-
17-
propertyIndex++;
18-
});
19-
});
20-
} else {
21-
input.forEach((property, propertyIndex) => {
22-
order[property] = {
23-
propertyIndex,
24-
};
25-
});
26-
}
4+
input.forEach((property, propertyIndex) => {
5+
order[property] = {
6+
propertyIndex,
7+
};
8+
});
279

2810
return order;
2911
};

0 commit comments

Comments
 (0)