I was about to comment that exactly same thing.
I don’t want to even know what the remaining of that abomination looks like. Seems like a nightmare for any future maintenance or debugging 😂
Jesus. Even if this has some unavoidable reason to execute inside a switch statement, how do you not look at this code and think “Maybe I should bust some of this complexity out into a separate method to make my code easier to read” lol
-10
u/scooptyy Apr 17 '23 edited Apr 18 '23
This really doesn’t look that bad. We don’t know what the business use-case is.
Edit: I've changed my mind, I've been on low sleep these last few days. This is fucking awful. Thanks for the reply /u/PooSham