Revert "Fixed enum switch warning"

This reverts commit 77b81adcd767e6e56655c9f0931ea61c95a5dc7a.