@@ -151,12 +151,10 @@ function getGroupsOfSortableAttributes(attributes, context) {
151
151
const attribute = attributes [ i ] ;
152
152
const nextAttribute = attributes [ i + 1 ] ;
153
153
const attributeline = attribute . loc . start . line ;
154
- let comment = [ ]
154
+ let comment = [ ] ;
155
155
try {
156
- comment = sourceCode . getCommentsAfter ( attribute )
157
- } catch ( e ) {
158
- } finally {
159
- }
156
+ comment = sourceCode . getCommentsAfter ( attribute ) ;
157
+ } catch ( e ) { /**/ }
160
158
const lastAttr = attributes [ i - 1 ] ;
161
159
const attrIsSpread = attribute . type === 'JSXSpreadAttribute' ;
162
160
@@ -181,11 +179,11 @@ function getGroupsOfSortableAttributes(attributes, context) {
181
179
if ( attributeline + 1 === commentline && nextAttribute ) {
182
180
attributeMap . set ( attribute , [ nextAttribute . range [ 1 ] , true ] ) ;
183
181
addtoSortableAttributeGroups ( attribute ) ;
184
- i ++ ;
182
+ i += 1 ;
185
183
} else if ( attributeline === commentline ) {
186
184
if ( firstComment . type === 'Block' ) {
187
185
attributeMap . set ( attribute , [ nextAttribute . range [ 1 ] , true ] ) ;
188
- i ++ ;
186
+ i += 1 ;
189
187
} else {
190
188
attributeMap . set ( attribute , [ firstComment . range [ 1 ] , false ] ) ;
191
189
}
@@ -201,7 +199,7 @@ function getGroupsOfSortableAttributes(attributes, context) {
201
199
attributeMap . set ( attribute , [ commentNextAttribute [ 0 ] . range [ 1 ] , true ] ) ;
202
200
}
203
201
addtoSortableAttributeGroups ( attribute ) ;
204
- i ++ ;
202
+ i += 1 ;
205
203
}
206
204
}
207
205
}
0 commit comments