From 2e3a5deb2c23a057df5e2cddd6e0b64358f23f1d Mon Sep 17 00:00:00 2001 From: Alexey Alexandrov Date: Tue, 22 Oct 2019 07:54:34 -0700 Subject: [PATCH] Fix staticcheck error about possible nil dereference. (#492) --- internal/driver/interactive_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/driver/interactive_test.go b/internal/driver/interactive_test.go index a977f45f..d8e4ef4f 100644 --- a/internal/driver/interactive_test.go +++ b/internal/driver/interactive_test.go @@ -303,7 +303,7 @@ func TestInteractiveCommands(t *testing.T) { // Get report output format c := pprofCommands[cmd[0]] if c == nil { - t.Errorf("unexpected nil command") + t.Fatalf("unexpected nil command") } vars = applyCommandOverrides(cmd[0], c.format, vars)