Closed piplup55 closed 2 years ago
whoops! copy/paste strikes again!
Three strikes and you're out: when trying to copy paste something for a third time, then instead refactor it into a function.
(Though I personally try to refactor even on the first copy paste attempt, because it might not always be that obvious how many copies there are already.)
In principle I agree, but in this case, it was a single line. I think it'd be a bit silly to replace a single line log with a method call to a function that takes up four lines. (That said, the code duplication was present before the change). I'll make sure to do that next time.
Lol (lmao)