Suffix for a vehicle is generated in 2 places with the same identical code. This commit moves the suffix generation into a function get_suffix() to prevent duplicated effort in maintaining 2 copies.
Feedback welcome!
P.S: I was unable to run the tests due to an error. I'll try it again, if it doesn't work, I'll leave the message in a separate issue.
Still a beginner to GitHub and Git, please be gentle!
Suffix for a vehicle is generated in 2 places with the same identical code. This commit moves the suffix generation into a function
get_suffix()
to prevent duplicated effort in maintaining 2 copies.Feedback welcome!
P.S: I was unable to run the tests due to an error. I'll try it again, if it doesn't work, I'll leave the message in a separate issue.
Still a beginner to GitHub and Git, please be gentle!