CodedOre / NewCaw

Development on Cawbird 2.0
GNU General Public License v3.0
97 stars 5 forks source link

Avoid code repetition due to `break` #14

Open CodedOre opened 2 years ago

CodedOre commented 2 years ago

TextUtils contains some code where some text modules are not displayed according to some flags.

The switch statement currently repeats a few lines, due to valac complaining about an break statement in a if scope when the case is not always "broken".

So, we need to see if we can improve this code.