routes icon indicating copy to clipboard operation
routes copied to clipboard

Refactor: we no longer need to keep track of multiple routes per endpoint section

Open gr2m opened this issue 5 years ago • 0 comments

https://github.com/octokit/routes/blob/f2235e10d84627935b304ee919b1da61c8103c20/lib/endpoint/find-routes.js#L12

Since #667, routeBlocks.length will always be 1 🎉

The source code can now be simplified quite a bit, there is always just one route, no need to iterate through state.routes any more.

gr2m avatar Mar 10 '20 06:03 gr2m