pkg,service/dap: use switch instead of ifs (#3576)

This commit is contained in:
Oleksandr Redko
2023-11-22 19:07:08 +02:00
committed by GitHub
parent 60a9014dcf
commit f1daaeb1b0
4 changed files with 19 additions and 15 deletions

View File

@ -5210,11 +5210,12 @@ func runDebugSessionWithBPs(t *testing.T, client *daptest.Client, cmd string, cm
cmdRequest()
client.ExpectInitializedEvent(t)
if cmd == "launch" {
switch cmd {
case "launch":
client.ExpectLaunchResponse(t)
} else if cmd == "attach" {
case "attach":
client.ExpectAttachResponse(t)
} else {
default:
panic("expected launch or attach command")
}