Convert if statement to switch statement.
Convert if statement to switch statement.

When the comparison is performed on an enum, using a switch statement
can allow for additional compiler optimizations.

sitofabi/duplicati,mnaiman/duplicati,mnaiman/duplicati,sitofabi/duplicati,mnaiman/duplicati,duplicati/duplicati,duplicati/duplicati,sitofabi/duplicati,sitofabi/duplicati,duplicati/duplicati,mnaiman/duplicati,duplicati/duplicati,duplicati/duplicati,mnaiman/duplicati,sitofabi/duplicati