|
|
|
|
|
by elyseum
1888 days ago
|
|
No need to ‘return’ when you throw an error, but your approach is valid IMO: if structure / readability is that important, refactor the switch to it’s own method with only if checks in it. Hard to make that simpler and more readable. |
|