Skip to content

Commit

Permalink
Ref: shortening.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Oct 10, 2024
1 parent 220ed93 commit 36a077c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ const v21 = ESLintUtils.RuleCreator.withoutDocs({
const nested = httpProp.value.properties;
const movable = nested.filter(propByName(movedProps));
for (const prop of movable) {
const propText = ctx.sourceCode.text.slice(
prop.range[0],
prop.range[1],
);
const propText = ctx.sourceCode.text.slice(...prop.range);
const comma = ctx.sourceCode.getTokenAfter(prop);
ctx.report({
node: httpProp,
Expand Down

0 comments on commit 36a077c

Please sign in to comment.