Documentation icon indicating copy to clipboard operation
Documentation copied to clipboard

feature: refactor get the snippet code

Open NguyenTuanCanh opened this issue 1 year ago • 2 comments

Changes made:

  1. Removed unnecessary nested promises by chaining then() calls.
  2. Used forEach loop instead of for loop for iterating over codeLines.
  3. Replaced indexOf with includes for checking if a line contains the search term.
  4. Simplified the logic for setting startingLine and foundLine within the loop.
  5. Replaced arrow functions with concise arrow functions where possible.

NguyenTuanCanh avatar Apr 29 '24 08:04 NguyenTuanCanh

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2024 9:57am

vercel[bot] avatar Apr 29 '24 08:04 vercel[bot]

This is mainly a cosmetic change, right? No functionality has changed?

RaananW avatar May 03 '24 12:05 RaananW

I am a bit confused as to the current changes. Formatting has changed a bit, but it seems like the code as it is is almost (or even completely) the same?

RaananW avatar May 06 '24 11:05 RaananW

any update here? or should I close it?

RaananW avatar Jun 13 '24 14:06 RaananW