mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-25 02:01:15 -03:00
lint: missing default in switch statements
This commit is contained in:
@@ -534,6 +534,10 @@ parse_execution_result_t parse_execution_context_t::run_switch_statement(
|
||||
case EXPAND_OK: {
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
DIE("unexpected expand_string() return value");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (result == parse_execution_success && switch_values_expanded.size() != 1) {
|
||||
@@ -945,6 +949,10 @@ parse_execution_result_t parse_execution_context_t::determine_arguments(
|
||||
case EXPAND_OK: {
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
DIE("unexpected expand_string() return value");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Now copy over any expanded arguments. Do it using swap() to avoid extra allocations; this
|
||||
|
||||
Reference in New Issue
Block a user