diff --git a/src/menu/views/load_rom.c b/src/menu/views/load_rom.c index cc8d4126..4f343adc 100644 --- a/src/menu/views/load_rom.c +++ b/src/menu/views/load_rom.c @@ -123,11 +123,7 @@ static const char *format_cic_type (rom_cic_type_t cic_type) { } static const char *format_boolean_type (bool bool_value) { - switch (bool_value) { - case true: return "On"; - case false: return "Off"; - default: return "Unknown"; - } + if (bool_value) ? return "On" : return "Off"; } static void set_cic_type (menu_t *menu, void *arg) {