Open mukul0596 opened 5 years ago
These lines in every case of the switch block are essentially the same, with a few parameters changing. This is making the code repetitive. Can you refactor it to have a common function doing these tasks?
switch
parameters
These lines in every case of the
switch
block are essentially the same, with a fewparameters
changing. This is making the code repetitive. Can you refactor it to have a common function doing these tasks?