Skip to content

chore: drop an unused destructured binding in RouteResults.test.jsx - #677

Open
MOHITKOURAV01 wants to merge 1 commit into
Aditya8369:mainfrom
MOHITKOURAV01:chore/routeresults-test-unused-binding
Open

chore: drop an unused destructured binding in RouteResults.test.jsx#677
MOHITKOURAV01 wants to merge 1 commit into
Aditya8369:mainfrom
MOHITKOURAV01:chore/routeresults-test-unused-binding

Conversation

@MOHITKOURAV01

Copy link
Copy Markdown
Contributor

Small follow-up to #672, which merged before I pushed this.

The mode-fallback case built its fixture with a rest destructure:

const { mode, ...withoutMode } = measuredRoute;

mode is never used — the point is to produce a route object without it — so ESLint flags it as no-unused-vars. A shallow copy with the key deleted expresses the same intent and leaves nothing dangling.

No behaviour change: RouteResults.test.jsx is 10 passing before and after.

Follow-up to Aditya8369#672. The mode-fallback case built its fixture with a rest
destructure whose `mode` binding was never used, which ESLint flags as
no-unused-vars. A shallow copy with the key deleted says the same thing and
leaves nothing dangling.

Test behaviour is unchanged — 10 passing either way.
@github-actions

Copy link
Copy Markdown

Thank You for Your Contribution! 🎉

Hi @MOHITKOURAV01,

Thank you for opening this Pull Request and contributing to our project. We truly appreciate your efforts.

Please make sure that:

  • Your code follows the project's guidelines.
  • You have linked the appropriate issue (if applicable).
  • Screenshots are added for UI/UX changes.
  • Your PR is ready for review.

The maintainer @Aditya8369 will review your PR shortly!

Happy Contributing! 🚀

@github-actions github-actions Bot added the ECSoC26 Contributions considered under ECSoC'26 label Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECSoC26 Contributions considered under ECSoC'26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant