nojronatron / Bigfoot-Bib-Report-WL-Form

Customized Winlink Race Tracker Form and Template for use in Bigfoot ultramarathon events.
https://enchanting-pony-09ae40.netlify.app/bigfoot-bib-report-initial
The Unlicense
5 stars 1 forks source link

Root Out Duplicated Code #4

Open nojronatron opened 2 years ago

nojronatron commented 2 years ago

"delBlankLines" has/had some. Root out and remove duplicated code wherever possible without changing form functionality, so code is easier to read and update.

nojronatron commented 1 year ago

To the best of my understanding, this problem has been addressed in PR #36 .

nojronatron commented 4 months ago

void functions AddIn, AddOut, and AddDrop are mostly duplicate code.

  1. Encapsulate the duplicated code into a single function that accepts a string parameter.
  2. Have the callers include the correct argument ('IN', 'OUT', or 'DROP') so the correct bib data is recorded.
  3. Test.