浏览代码

Fix staticcheck error about possible nil dereference. (#492)

Alexey Alexandrov 5 年前
父节点
当前提交
2e3a5deb2c
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      internal/driver/interactive_test.go

+ 1
- 1
internal/driver/interactive_test.go 查看文件

@@ -303,7 +303,7 @@ func TestInteractiveCommands(t *testing.T) {
303 303
 		// Get report output format
304 304
 		c := pprofCommands[cmd[0]]
305 305
 		if c == nil {
306
-			t.Errorf("unexpected nil command")
306
+			t.Fatalf("unexpected nil command")
307 307
 		}
308 308
 		vars = applyCommandOverrides(cmd[0], c.format, vars)
309 309