Skip to content

Commit 38ed8d8

Browse files
committed
remove additional switch
1 parent a3f2137 commit 38ed8d8

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

phpdbg_prompt.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,12 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TS
139139
goto next_line;
140140
}
141141

142-
switch (cmd[0]) {
143-
144-
default: switch (phpdbg_do_cmd(phpdbg_prompt_commands, cmd, cmd_len TSRMLS_CC)) {
145-
case FAILURE:
146-
phpdbg_error(
147-
"Unrecognized command in %s:%d: %s!", init_file, line, cmd);
148-
break;
149-
}
150-
}
142+
switch (phpdbg_do_cmd(phpdbg_prompt_commands, cmd, cmd_len TSRMLS_CC)) {
143+
case FAILURE:
144+
phpdbg_error(
145+
"Unrecognized command in %s:%d: %s!", init_file, line, cmd);
146+
break;
147+
}
151148
}
152149
next_line:
153150
line++;

0 commit comments

Comments
 (0)