The source project of this merge request has been removed.
Enable the StringReplacement cop.
Also fix one use of gsub
that would be faster as delete
.
Use tr
instead of gsub
when you are replacing the same number of characters. Use delete
instead of gsub
when you are deleting characters.